*) fixed stupid bug (introduced in r7663 by myself) which caused wrong parsing of Wiki pages

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@7669 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
low012 14 years ago
parent 60412d2bb3
commit 06d50fd801

@ -925,7 +925,10 @@ public class WikiCode extends AbstractWikiParser implements WikiParser {
if (Arrays.binarySearch(HEADLINE_TAGS, tags.openWiki) >= 0) {
processHeadline(stringBuilder, firstPosition, tags, secondPosition, direlem);
} else {
int delta = stringBuilder.length();
stringBuilder.replace(firstPosition, firstPosition + tags.openWikiLength, tags.openHTML);
delta = (delta - stringBuilder.length()) * -1;
secondPosition += delta;
stringBuilder.replace(secondPosition, secondPosition + tags.closeWikiLength, tags.closeHTML);
}
}

Loading…
Cancel
Save