From daning106@gmail.com Tue Aug 19 10:34:29 2008 From: Wang Ning To: xwiki-devs@xwiki.org Subject: [xwiki-devs] [GSoC][officeimporter]question about the multi empty line and new line inside p tag Date: Tue, 19 Aug 2008 16:34:26 +0800 Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============4122067409578022435==" --===============4122067409578022435== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Hi Vincent, Input xhtml is :

Format Test

Text in a line

The rendering in firefox of this xhtml is as the same as

Format Test

Text in a line

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? -- Thanks Wang Ning --===============4122067409578022435==-- From vincent@massol.net Tue Aug 19 10:41:04 2008 From: Vincent Massol To: xwiki-devs@xwiki.org Subject: Re: [xwiki-devs] [GSoC][officeimporter]question about the multi empty line and new line inside p tag Date: Tue, 19 Aug 2008 10:40:53 +0200 Message-ID: <44277BFA-5061-440D-8CFA-D7A8990BA9F2@massol.net> In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============4964993049206266760==" --===============4964993049206266760== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit On Aug 19, 2008, at 10:34 AM, Wang Ning wrote: > Hi Vincent, > > Input xhtml is : > > > > > >

Format Test

>

Text in a > line

> > > The rendering in firefox of this xhtml is as the same as > > >

Format Test

>

Text in a line

> > 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 --===============4964993049206266760==--