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

Inline wiki macro content is rendered standalone when the wiki macro is standalone

    XMLWordPrintable

Details

    • Unknown

    Description

      Steps to reproduce:

      1. Import the attached XAR. It contains a wiki macro that uses the wikimacrocontent macro in an inline context even when the macro is standalone.
      2. Open the imported page.

      Expected result:

      In the first example, the version marker and the content is on the same line.

      Actual result:

      The version marker and the content are on different lines, the produced HTML is invalid.

      A bit of debugging reveals that createXDOM is called with inline set to true but the content of the wiki macro has been prepared in standalone mode as the wiki macro itself is used standalone.

      I think it is a problem that the macro content parser ignores the inline flag when the content has been prepared. This could possibly also affect other macros that use the content parser directly.

      Attachments

        Issue Links

          Activity

            People

              tmortagne Thomas Mortagne
              MichaelHamann Michael Hamann
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: