This issue has been created
There is 1 update.
 
 
XWiki Rendering / cid:jira-generated-image-avatar-6246fc11-c702-412d-b09a-4998a25a0af0 XRENDERING-798 Open

Line breaks followed by empty format at the end of block elements should be escaped

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-e289e26c-0457-4c44-98a4-71a5009e6793 Michael Hamann created this issue on 04/Sep/25 17:40
 
Summary: Line breaks followed by empty format at the end of block elements should be escape
Issue Type: cid:jira-generated-image-avatar-6246fc11-c702-412d-b09a-4998a25a0af0 Bug
Affects Versions: 16.10.0
Assignee: Unassigned
Components: Syntax - xwiki/2.0
Created: 04/Sep/25 17:40
Priority: cid:jira-generated-image-static-major-6c41b13e-831e-4b48-b0a9-a8733b5a78d1 Major
Reporter: Michael Hamann
Description:

Steps to reproduce:

Convert

<table border="1">
<tr>
<td>var</td>
<td><span style="color: #0000ff;">asdf<br/></span></td>
</tr>
<tr>
<td>bar</td>
<td>function</td>
</tr>
</table> 

to XWiki/2.0 syntax.

Expected result:

(% border="1" %)
|var|(%%)(% style="color: #0000ff;" %)asdf\\
|bar|function 

Actual result:

(% border="1" %)
|var|(%%)(% style="color: #0000ff;" %)asdf

|bar|function 

See also https://forum.xwiki.org/t/table-breaks-when-converting-from-html/16859

 
 

1 update

 
cid:jira-generated-image-avatar-e289e26c-0457-4c44-98a4-71a5009e6793 Changes by Michael Hamann on 04/Sep/25 17:42
 
Summary: Line breaks followed by empty format at the end of block elements should be escape escaped