On Aug 19, 2008, at 10:34 AM, Wang Ning wrote:
Hi Vincent,
Input xhtml is : <?xml version="1.0" encoding="UTF-8"?> <html><head /><body>
<h1 class="western">Format Test</h1> <p class="western">Text in a line</p> </body></html>
The rendering in firefox of this xhtml is as the same as <?xml version="1.0" encoding="UTF-8"?> <html><head /><body> <h1 class="western">Format Test</h1> <p class="western">Text in a line</p> </body></html> But the xwiki syntax generated by XWikiSyntaxRender is --------------code begin-----------------
1 Format Test Text in a line --------------code end------------------- I think the expected should be --------------code begin----------------- 1 Format Test Text in a line --------------code end-------------------
WDYT?
Yes I agree. i think the XHTML parser in wikimodel should ignore new lines and not send events for them since this is the default HTML behavior. I think a wikimodel issue should be created for this. Thanks -Vincent