Nested user macro content disappears when the outer macro body ends with a class-bearing paragraph

XMLWordPrintable

    • 1
    • Severity 3 - Minor
    • RtB - Service ops & Tech entropy

      Issue Summary

      In Confluence 10.2 and above, content inside nested user macros can disappear from the rendered page when the outer macro’s body ends with a paragraph that has a class attribute, such as  auto-cursor-target. The content is not altered and remains present in page’s storage format. 

      Steps to Reproduce

      1. Create three user macros:
        1. outerdiv | rendered | <div>$body</div>
        2. innerdiv | rendered | <div><p>Inner text</p>$body</div>
        3. innerempty | no macro body | ---
      2. Create a page with the following structure:
        1. outerdiv
          1. innerdiv
               └── paragraph containing text
          2. paragraph with class="auto-cursor-target"
                └── innerempty
      1. Save and view the page

      Expected Results

      The page displays the text and body content from innerdiv, followed by ---.

      Actual Results

      The page displays only ---. The preceding innerdiv content is absent from the rendered HTML, although it remains in saved storage.

      Workaround

      Adding a non-empty ordinary paragraph after the final macro-containing paragraph, still inside outerdiv, preserves the preceding content.

              Assignee:
              Pille Saral
              Reporter:
              Pille Saral
              Votes:
              3 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated: