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

Under some conditions, table characters ("|" and "!!") are not escaped at the beginning of a line in cells

    XMLWordPrintable

Details

    • Unit
    • Unknown
    • N/A
    • N/A

    Description

      The following sequence of events:

      beginDocument
      beginTable
      beginTableRow
      beginTableCell
      beginGroup
      beginParagraph
      beginFormat [NONE] [[style]=[color: rgb(6,125,23);]]
      onWord [hello]
      onNewLine
      endFormat [NONE] [[style]=[color: rgb(6,125,23);]]
      onSpecialSymbol [!]
      onSpecialSymbol [!]
      onSpecialSymbol [!]
      onSpecialSymbol [!]
      onSpace
      onWord [same]
      onSpace
      onWord [cell]
      endParagraph
      endGroup
      endTableCell
      endTableRow
      endTable
      endDocument

      Produced with the following Confluence XHTML syntax:

      <table>
      <tr><td><span style="color: rgb(6,125,23);">hello<br /></span>!!!! same cell</td></tr>
      </table> 

      Leads to the following erroneous XWiki syntax:

      |(((
      (% style="color: rgb(6,125,23);" %)hello
      (%%)!!!! same cell
      ))) 

      It is erroneous because the first pair of ! are not escaped.

      Same goes for pipe characters (replacing !! with |)

      This incorrectly produces a table inside the table, instead of showing the eclamation marks or the pipe characters.

      Attachments

        Activity

          People

            MichaelHamann Michael Hamann
            rjakse Raphaƫl Jakse
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: