bryonjacob / wikimodel

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

Missing linebreak in xwiki syntax when 2 macros are separated by a new line #29

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
If you have:

{nowiki}
* this is not a list and this is not *bold*
[not a link]
\\ <-- not a newline
{/nowiki}
{nowiki}*{/nowiki}

wikimodel doesn't generate a line break event between the 2 on Macro events.

Original issue reported on code.google.com by vmas...@gmail.com on 27 Jul 2008 at 8:34

GoogleCodeExporter commented 8 years ago
There's also no newline event when the following is used:

---
----

This generates the following events:
beginDocument
beginParagraph
beginStrikedOut
onSpecialSymbol: [-]
endStrikedOut
endParagraph
onHorizontalLine
endDocument

Thus when transformed back into wiki syntax this leads to:
---------

Which if parsed again will generate the following event:
beginDocument
onHorizontalLine
endDocument

Which isn't correct. We should be able to generate the same original text.

Thanks
-Vincent

Original comment by vmas...@gmail.com on 14 Aug 2008 at 8:08

GoogleCodeExporter commented 8 years ago

Original comment by vmas...@gmail.com on 27 Aug 2008 at 12:47

GoogleCodeExporter commented 8 years ago
Note to self: there are 2 events: onMacroBlock and onMacroInline + 
onEmptyLines(int)
(which is currently not wired for xwiki parser).

Original comment by vmas...@gmail.com on 27 Aug 2008 at 12:48

GoogleCodeExporter commented 8 years ago
I now understand better how it all works

Original comment by vmas...@gmail.com on 26 Sep 2008 at 1:05