This issue has been created
There is 1 comment.
 
 
JIRA Components / cid:jira-generated-image-avatar-fbb1dba1-6978-4136-a091-8c1f6877ab80 JIRA-70 Open

The Jira macro inserts a paragraph when used in inline mode

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-49270862-a18c-4f01-9b5c-8de54936517e Michael Hamann created this issue on 19/Feb/25 15:29
 
Summary: The Jira macro inserts a paragraph when used in inline mode
Issue Type: cid:jira-generated-image-avatar-fbb1dba1-6978-4136-a091-8c1f6877ab80 Bug
Affects Versions: 10.1
Assignee: Unassigned
Components: JIRA Macro
Created: 19/Feb/25 15:29
Priority: cid:jira-generated-image-static-blocker-5e3666c5-8663-46e7-9e3b-9193f327057c Blocker
Reporter: Michael Hamann
Description:

Steps to reproduce:

  1. Use the Jira macro inline with "enum" style in a paragraph as on https://extensions.xwiki.org/xwiki/bin/view/Extension/Security%20Module#HCache
  2. View the page.

Expected result:

The macro doesn't cause any line break.

Actual result:

The Jira macro is on its own paragraph.

This only seems to be an issue when the macro is rendered async as it can be seen on https://extensions.xwiki.org/xwiki/bin/view/Extension/Security%20Module?async=false#HCache. I think the main problem is that the inline information is lost in the async rendering context.

 
 

1 comment

 
cid:jira-generated-image-avatar-49270862-a18c-4f01-9b5c-8de54936517e Michael Hamann on 19/Feb/25 15:37
 

After a quick check of the code, I think here the macro transformation context would need to be cloned as the macro transformation modifies a single instance of it so it also depends on the remaining content of the page if this issue can be reproduced or not.