From: axelcl Date: Fri, 18 Feb 2005 21:26:18 +0000 (+0000) Subject: small changes X-Git-Url: http://secure.phpeclipse.com small changes --- diff --git a/archive/org.plog4u.wiki/src/org/plog4u/wiki/filter/WikipediaParser.java b/archive/org.plog4u.wiki/src/org/plog4u/wiki/filter/WikipediaParser.java index f0a4790..08a0e3b 100644 --- a/archive/org.plog4u.wiki/src/org/plog4u/wiki/filter/WikipediaParser.java +++ b/archive/org.plog4u.wiki/src/org/plog4u/wiki/filter/WikipediaParser.java @@ -700,21 +700,21 @@ public class WikipediaParser { copyWhite(fWhiteStart, fWhiteStartPosition, 1); fWhiteStart = false; - int startHeadPosition = fCurrentPosition; + int startHeadPosition = fCurrentPosition-1; if (readUntilEOL()) { // TODO not correct - improve this String head = new String(fSource, startHeadPosition, fCurrentPosition - startHeadPosition); - int index = head.indexOf(": "); + int index = head.indexOf(" : "); if (index > 0) { fResultBuffer.append("
"); fResultBuffer.append(head.substring(0, index)); - fResultBuffer.append("
"); + fResultBuffer.append(" 
"); fResultBuffer.append(head.substring(index + 2)); fResultBuffer.append("
"); } else { fResultBuffer.append("
"); fResultBuffer.append(head); - fResultBuffer.append("
"); + fResultBuffer.append(" "); } continue; }