when converting following HTML snippet to XWiki 2.1 syntax, the table will be broken. If the span has no attributes, the table is as expected. Why is that?
I think the problem comes from around here, as in the example the new line is the last element of the table cell, but the next event will be endFormat so eventType.isInlineEnd() will not be true and therefore it will not be outputted as a line break.
Thank you very much for this report and the excellent work at identifying the underlying problem. I’ve reported and fixed this as XRENDERING-798, the fix will be included in the next releases as indicated in the Jira issue.