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

HTML to Wiki Syntax 2 looses color in certain cases

    XMLWordPrintable

    Details

    • Tests:
      Unit
    • Difficulty:
      Medium
    • Similar issues:

      Description

      In certain cases some styles will be lost in HTML to Syntax 2.0 conversion
      This content

      <html>
      <body>
      <font style="color: #ff0000"><span lang="fr-FR"><b>Hello</b></span></font>
      <span style="color: #ff0000"><span lang="fr-FR"><b>Hello</b></span></span>
      <span style="color: #ff0000"><b>Hello</b></span>
      </body>
      </html>
      

      Converts to:

      (% lang="fr-FR" %)**Hello**(%%) 
      (% lang="fr-FR" %)**Hello**(%%) 
      (% style="color: #ff0000" %)**Hello** 
      

      The first 2 lines don't keep the color style while the last one does.
      This is particularly problematic because the first line is an example coming from an OpenOffice conversion

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              tmortagne Thomas Mortagne
              Reporter:
              ludovic Ludovic Dubost
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Date of First Response: