XWiki Rendering
  1. XWiki Rendering
  2. XRENDERING-201

Confluence parser doesn't recognize space properly under some circumstances

    Details

    • Tests:
      Unit
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      Description

      Input:

      This is * bold *
      

      Generates:

      <document><parameter0><metadata class="linked-hash-map"><entry><string>syntax</string><org.xwiki.rendering.syntax.Syntax><type><name>Confluence</name><id>confluence</id></type><version>1.0</version></org.xwiki.rendering.syntax.Syntax></entry></metadata></parameter0><paragraph parameter0=""><word>This</word><space></space><word>is</word><specialSymbol> </specialSymbol><specialSymbol>*</specialSymbol><specialSymbol> </specialSymbol><word>bold</word><space></space></paragraph></document>
      

      Notice the SpecialSymbolBlock for the space instead of SpaceBlock.

        Issue Links

          Activity

          Hide
          Thomas Mortagne added a comment -

          This is because of:

          <#SPECIAL_SYMBOLS: (
                  [..]
          
                  | " * "
          

          Probably done like this to make sure it's not matched as starting bold syntax.

          Show
          Thomas Mortagne added a comment - This is because of: <#SPECIAL_SYMBOLS: ( [..] | " * " Probably done like this to make sure it's not matched as starting bold syntax.

            People

            • Assignee:
              Thomas Mortagne
              Reporter:
              Vincent Massol
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

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