ashokrenukappa / java-wikipedia-parser

Automatically exported from code.google.com/p/java-wikipedia-parser
0 stars 0 forks source link

parsing special constructs #4

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. make up some wikitext with lots of nested templates, like this:
abcde{{12345
|12345{{12345}}
|12345}}
12345{{12345}}12345
moretextmoretextmoretext
moretextmoretextmoretextmoretext
2. parse and print output

What is the expected output? What do you see instead?
output should include both blocks of plain text '12345' sequences. instead 
it shows only one because of an error (I think) in the logic of 
MarkupParser.parseSpecialConstruct()

It works when I add an offset to the function searching for another '{{' 
sequence, like this

int scanFrom = position;
int x = find (new char[] { '{', nextChar }) + scanFrom - beforeScan; 

Do you still maintain this code?
It would be great if you could post something about the status of this 
project.

Thanks

Oliver

Original issue reported on code.google.com by ojfle...@gmail.com on 15 Jul 2008 at 5:19