From 8cfa765dccf30d2b37c9e6d9cc889b8f8cf091a1 Mon Sep 17 00:00:00 2001 From: axelcl Date: Fri, 18 Feb 2005 21:26:18 +0000 Subject: [PATCH] small changes --- .../org/plog4u/wiki/filter/WikipediaParser.java | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) 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; } -- 1.7.1