bryonjacob / wikimodel

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

XHTML Parser skips paragraph word #21

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hi,

I'm passing the following to the xhtml parser:

<p>hello <em class="italic">beautiful</em> <strong>world</strong></p>

And I get the following events (XWiki events but they're mapped to
wikimodel events):

beginParagraph
onSpace
onSpace
beginItalic
onWord: [beautiful]
endItalic
onSpace
beginBold
onWord: [world]
endBold
endParagraph

It should be:

beginParagraph
onWord: [hello]
onSpace
beginItalic
onWord: [beautiful]
endItalic
onSpace
beginBold
onWord: [world]
endBold
endParagraph

As you can see the "hello" world has disappeared.

Any idea?

Thanks
-Vincent

Original issue reported on code.google.com by vmas...@gmail.com on 20 Jun 2008 at 10:22

GoogleCodeExporter commented 8 years ago
It is very strange... In my tests your phrase generates exactly the expected 
output
(without "class" attribute, which does not implemented yet). But at least the 
"hello"
word is there. Please check your WikiModel <=> XWiki bridge.

Original comment by mikhail....@gmail.com on 29 Jun 2008 at 8:26

GoogleCodeExporter commented 8 years ago
wikimodel generates a onSpace("hello") event instead of a onWord("hello")

Original comment by vmas...@gmail.com on 1 Jul 2008 at 1:53

GoogleCodeExporter commented 8 years ago
Please reopen this issue...

Original comment by vmas...@gmail.com on 2 Jul 2008 at 10:30

GoogleCodeExporter commented 8 years ago

Original comment by mikhail....@gmail.com on 4 Jul 2008 at 8:32

GoogleCodeExporter commented 8 years ago
Here's a patch.

Original comment by vmas...@gmail.com on 19 Jul 2008 at 5:30

Attachments:

GoogleCodeExporter commented 8 years ago
Thank you for the patch!

Original comment by mikhail....@gmail.com on 24 Jul 2008 at 7:52