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

Macro alone in a paragraph is badly parsed

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 2.2.3
    • Fix Version/s: 2.3 M2
    • Component/s: {Unused} Rendering 2.0
    • Labels:
      None
    • Tests:
      Unit
    • Difficulty:
      Unknown
    • Similar issues:

      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

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

              Dates

              • Created:
                Updated:
                Resolved:
                Date of First Response: