There is 1 update.
 
 
XWiki Rendering / cid:jira-generated-image-avatar-f382573d-8ee2-45c0-b303-6836c3c6aed1 XRENDERING-766 Open

Macros followed by an empty block with parameters gets wrapped in a span when converted to annotated html

 
View issue   ยท   Add comment
 

1 update

 
cid:jira-generated-image-avatar-a59944a6-034d-4ed3-a93f-8b531be5eab7 Changes by Manuel Leduc on 21/Jul/26 12:00
 
Description: Note 1: the affects version(s) needs to be refined.
Note 2: this issue is reported in order to fix XWIKI-21973

h2. Reproduction steps

Create a content with a macro followed by a parameter, for instance

{code:java}
{{icon name="add"/}}(% id="test" %)
{code}

And converts it to annotated (x)html

h2. Expected

Then parameters produce an empty span after the macro.
{code:html}
< p><!--startmacro:icon|-|name="add"--><!--stopmacro-->&nbsp;<span id="test"></span></p>
{code}

h2. Actual

The macro is wrapped in a span with the parameters are attributes.

{code:html}
< p><span id="test"><!--startmacro:icon|-|name="add"--><!--stopmacro-->&nbsp;</span></p>
{code}