Rendering API inserts space after line break

Hello all,

when converting the HTML 5.0 code:

<p>foo<br/>
bar</p>

to XWiki 2.1 syntax using the rendering API, you get an undesired space at the beginning of the second line, which I would not expect:

foo
 bar

Indeed looks wrong. It seems it’s brought by the newline since without the new line it works fine.

Thx for reporting, a jira issue would be nice :slight_smile:

https://jira.xwiki.org/browse/XRENDERING-777