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

Office importer can generate a paragraph inside a UL tag

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.2.4
    • Fix Version/s: 2.4 M2, 2.3.2
    • Component/s: Office
    • Labels:
      None
    • Tests:
      Unit
    • Difficulty:
      Easy
    • Similar issues:

      Description

      The attached word file contains a simple list preceded by an indented paragraph. The generated HTML (styles filtered) is:

      <p><strong>Section title</strong></p>
      <ul>
        <p>The following is a list:</p>
        <li>one</li>
        <li>two</li>
      </ul>
      

      As you can see the UL tag starts with a paragraph which is invalid. The final wiki syntax is:

      **Section title**
      
      * (((
      The following is a list:
      
      * one
      * two
      )))
      

      which is very different than the expected result.

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: