This issue has been created
 
 
XWiki Rendering / cid:jira-generated-image-avatar-5bc11531-dd19-4777-bc01-28f96d0f58f4 XRENDERING-773 Open

Final new lines are discarded from inline code macro content

 
View issue   ·   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-a756839a-4b17-44dc-8b7f-65e29237f433 Raphaël Jakse created this issue on 13/Feb/25 09:50
 
Summary: Final new lines are discarded from inline code macro content
Issue Type: cid:jira-generated-image-avatar-5bc11531-dd19-4777-bc01-28f96d0f58f4 Bug
Affects Versions: 15.10.16, 16.10.3, 17.0.0
Assignee: Unassigned
Attachments: image-2025-02-13-09-48-15-819.png, image-2025-02-13-09-48-52-627.png
Created: 13/Feb/25 09:50
Priority: cid:jira-generated-image-static-major-3cf313c8-b68a-4ac5-b88b-915c210ba619 Major
Reporter: Raphaël Jakse
Description:

The following XWiki syntax:

This is some code: {{code language="none"}}$ command
{{/code}}{{code language="none"}}answer on its own line
{{/code}} text after

renders all on one line:

43336_image-2025-02-13-09-48-15-819.png

Expected result: three lines:

43335_image-2025-02-13-09-48-52-627.png

(this was obtained by adding an extra new line character at the end of each code macro content)