bryonjacob / wikimodel

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

Bold issue for XWiki syntax #36

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
If you enter this input:

This is ***** bold

You get this output:

beginDocument
beginParagraph
onWord: [This]
onSpace
onWord: [is]
onSpace
onSpecialSymbol: [*]
onSpace
onWord: [bold]
endParagraph
endDocument

This doesn't look correct since reserializing this in wiki format will
generate: "This is * bold"

I would have expected either:
- an empty beginBold/endBold block followed by a special symbol (*)
- 3 special symbols (*) followed by a bold block

Thanks

Original issue reported on code.google.com by vmas...@gmail.com on 16 Aug 2008 at 8:38

GoogleCodeExporter commented 8 years ago
The same problem exists for italic and other formatting elements.

Original comment by vmas...@gmail.com on 17 Aug 2008 at 10:49

GoogleCodeExporter commented 8 years ago

Original comment by vmas...@gmail.com on 27 Aug 2008 at 1:36

GoogleCodeExporter commented 8 years ago
This is correct according to Mikhail since wikimodel does cleanup for empty 
elements.
It's a design decision.

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