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

Macro alone in a paragraph is badly parsed

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Blocker
    • 2.3 M2
    • 2.2.3
    • {Unused} Rendering 2.0
    • None
    • Unit
    • Unknown

    Description

      The following XWiki 2.0 syntax:

      (% style="color:red;" %)
      {{velocity}}$xwiki.version{{/velocity}}
      
      after
      

      Generates this HTML in view mode:

      <p>2.3-SNAPSHOT.27857</p>
      <p style="color:red;"></p>
      <p>after</p>
      

      Notice the empty paragraph. The style wasn't applied to the paragraph containing the macro but instead an empty paragraph was added. This works fine in 2.2.2.

      Attachments

        Activity

          People

            tmortagne Thomas Mortagne
            mflorea Marius Dumitru Florea
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: