bryonjacob / wikimodel

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

XHTML parser should generate an onEmptyLines(1) event when 2 paragraphs are next to each other. #48

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Input:

<html><p>this is one<br/>paragraph</p><p>this is another one</p></html>

Expected events:

beginDocument
beginParagraph
onWord: [this]
onSpace
onWord: [is]
onSpace
onWord: [one]
onLineBreak
onWord: [paragraph]
endParagraph
onEmptyLines: [1]
beginParagraph
onWord: [this]
onSpace
onWord: [is]
onSpace
onWord: [another]
onSpace
onWord: [one]
endParagraph
endDocument

Got:

beginDocument
beginParagraph
onWord: [this]
onSpace
onWord: [is]
onSpace
onWord: [one]
onLineBreak
onWord: [paragraph]
endParagraph
beginParagraph
onWord: [this]
onSpace
onWord: [is]
onSpace
onWord: [another]
onSpace
onWord: [one]
endParagraph
endDocument

As you can see it's missing the onEmptyLines event.

Original issue reported on code.google.com by vmas...@gmail.com on 28 Aug 2008 at 6:40

GoogleCodeExporter commented 8 years ago

Original comment by vmas...@gmail.com on 28 Aug 2008 at 6:40

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Right now there are 2 problems:
1) XWiki doesn't emit any XHTML element for the onEmptyLines() event 
2) the wikimodel XHTML handler doesn't have any code for sending onEmptyLines() 
yet

Original comment by vmas...@gmail.com on 11 Sep 2008 at 7:10

GoogleCodeExporter commented 8 years ago
Fixed

Original comment by vmas...@gmail.com on 11 Sep 2008 at 2:52

GoogleCodeExporter commented 8 years ago
This is not correct. See also Issue 76

Original comment by vmas...@gmail.com on 20 Sep 2008 at 10:29