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

Tables can be broken when line break syntax \\ is replaced with new line \n inside table cells

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 2.0.1, 2.1 M1
    • 1.9.3, 2.0 M3
    • {Unused} Rendering 2.0
    • None
    • any
    • table new line break
    • Unknown

    Description

      Consider this XWiki 2.0 input:

      |x\\= h =|y
      

      which is translated into:

      <table><tr><td>x<br/>= h =</td><td>y</td></tr></table>
      

      and then parsed back in:

      |x
      = h =|y
      

      As you can see, a consequence of the round trip is the replacement of \ \ (line break) with \n (new line). The XHTML output becomes:

      <table><tr><td>x</td></tr></table><h1 id="Hh"><span>h</span></h1><p>|y</p>
      

      which is not what we expected.

      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: