Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.4.3
-
Component/s: {Unused} Rendering 2.0
-
Labels:None
-
Tests:Unit
-
Difficulty:Medium
-
Similar issues:
XWIKI-5979OpenOffice fails to restart in certain cases XWIKI-3670When switching from syntax 1 to syntax 2 a $doc.name / $doc.web is encapsulated in a {{velocity}} marker but also in a {{html wiki=true}} marker XWIKI-2269\\\\\ in wiki syntax does not convert to 2 <br /> but instead escaped one \ in HTML XWIKI-3743new problem with {{velocity}}+{{html}} (certainly since {{html wiki="false"}} by default) XWIKI-1599Using HTML in Wiki Syntax creates invalid HTML in rendering XWIKI-4613Macros that output STYLE tags inside the HTML body generate wiki syntax garbage XWIKI-322If I put HTML code inside text in wiki editor mode, and I switch to wysiwyg mode, I loose this code XWIKI-398Allowing to change font size, type and color. XWIKI-1152Wysiwyg loosing content when copy pasting and switching to list XWIKI-5654Feed plugin does write HTML tags in document titles
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
Issue Links
- is duplicated by
-
XWIKI-3234
Error while parsing nested <span> elements with styles
-
It has nothing to do with color, pretty sure the parser simply does not take into account font element or something.