This issue has been created
There is 1 update.
 
 
XWiki Platform / cid:jira-generated-image-avatar-1602f4aa-d63a-4493-b911-d3fdd752a5b3 XWIKI-22715 Open

Include and Display macros shouldn't duplicate the content of multiline content when used inline

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-e07b7697-f532-454f-a067-c745be4afa65 Mathieu Pace created this issue on 05/Dec/24 14:28
 
Summary: Include and Display macros shouldn't duplicate the content of multiline content when used inline
Issue Type: cid:jira-generated-image-avatar-1602f4aa-d63a-4493-b911-d3fdd752a5b3 Improvement
Affects Versions: 16.10.0, 16.4.5
Assignee: Unassigned
Attachments: image-2024-12-05-14-24-45-869.png
Components: Rendering - Include Macro
Created: 05/Dec/24 14:28
Priority: cid:jira-generated-image-static-major-ddd0339e-f3e3-44ea-85eb-8bf283c0e58f Major
Reporter: Mathieu Pace
Description:

Reproduction

  1. Create a page with multiple lines of content and save it
  2.  Create a second page
    1. add a line of text
    2. on the same line add a display / include macro with the reference pointing to the first page
    3. The multiline content is displayed
    4. Save the page
    5. Re-edit it, no need to change anything
    6. Save it
    7. Multiline content is doubled

The more you loop on step 5 to 7, the more duplicate content you get.

42991_image-2024-12-05-14-24-45-869.png

The content seems to be copied into the current document, instead of being kept inside the macro (can be seen by editing in wiki mode)

Expected result

No duplicate content

 

 
 

1 update

 
cid:jira-generated-image-avatar-e07b7697-f532-454f-a067-c745be4afa65 Changes by Mathieu Pace on 05/Dec/24 14:30
 
Attachment: XWIKI-22715_testPages.xar