bryonjacob / wikimodel

Automatically exported from code.google.com/p/wikimodel
0 stars 0 forks source link

XHTML parser mixes onVerbatimInline and onVerbatimBlock #51

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Input:

<html><p>This is <pre>**verbatim**</pre></p></html>

Output:

beginDocument
beginParagraph
onWord: [This]
onSpace
onWord: [is]
onSpace
endParagraph
onStandaloneVerbatim: [**verbatim**]
endDocument

Expected:

beginDocument
beginParagraph
onWord: [This]
onSpace
onWord: [is]
onSpace
onInlineVerbatim: [**verbatim**]
endParagraph
endDocument

Original issue reported on code.google.com by vmas...@gmail.com on 2 Sep 2008 at 9:53

GoogleCodeExporter commented 8 years ago
ok this is invalid XHTML....

So after talking to Mikhail, the solution is to have the XHTML parser emit
onVerbatimInline events when it sees <tt class="wikimodel-verbatim">...</tt>.

Original comment by vmas...@gmail.com on 2 Sep 2008 at 3:47

GoogleCodeExporter commented 8 years ago
Fixed.

Original comment by vmas...@gmail.com on 2 Sep 2008 at 4:34