Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-22715

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

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Duplicate
    • Major
    • None
    • 16.4.5, 16.10.0
    • WYSIWYG Editor
    • None
    • Unknown

    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.

      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

       

      Attachments

        Issue Links

          Activity

            People

              tmortagne Thomas Mortagne
              mpace Mathieu Pace
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: