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

XHTML tables are badly converted to XWiki 2.0 syntax if a table cell contains a paragraph with just a line break

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Major
    • None
    • 3.0
    • Rendering
    • None
    • Unknown

    Description

      XHTML 1.0 input:

      <table>
      <tbody>
        <tr>
          <td><p><br/></p></td>
          <td><p>x</p></td>
        </tr>
        <tr>
          <td>y</td>
          <td>z</td>
        </tr>
      </tbody>
      </table>
      

      XWiki 2.0 output:

      ||
      
      
      (((
      x
      )))
      
      |y|z
      

      The use case is that I want to simplify the table filter applied by the office importer cleaner. This filter was written prior of XWIKI-3262 being fixed.

      Attachments

        Issue Links

          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: