Uploaded image for project: 'XWiki Rendering'
  1. XWiki Rendering
  2. XRENDERING-662

Include macro displays the included content in addition to the macro block when preceded by simple text without empty line

    XMLWordPrintable

Details

    • Bug
    • Resolution: Solved By
    • Major
    • 16.4.5, 15.10.14, 16.9.0
    • 10.6
    • None
    • None
    • Unknown

    Description

      Steps to reproduce

      • Create page Sandbox.P1.WebHome with the following content:
      test
      {{include reference="Sandbox.P1.P2.WebHome"/}}
      
      • Create page Sandbox.P1.P2.WebHome with content "P2 content"
      • Edit Sandbox.P1.WebHome in wysiwyg

      Actual result

      • The editor shows text "test" followed by "macro:include" followed by the content of page Sandbox.P1.P2.WebHome.
      • When hitting the "source" button, the content of Sandbox.P1.P2.WebHome is present in the source.

      Expected result

      The editor shows simply "test" followed by "macro:include" without the included content itself.

      Attachments

        Issue Links

          Activity

            People

              MichaelHamann Michael Hamann
              slauriere slauriere
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: