Underline text color get lost saving or loading doc or docx.
Analizing docx (word/document.xml) here a sample part of xml:
<w:u w:val="double" w:color="00B0F0"/>
Attribute "w:color" are not considered on reading and are missing on writing.
In case Filippo's report is a bit too condensed:
Both Writer and MS-Word allow definition of colors for character underlines (that is: the line, not the text itself). Text filters do not export this property to DOC and DOCX and also do not import it from DOC/DOCX - the only Word-compatible filter supporting underline colors currently is RTF.
Excel and PowerPoint do not support underline colors. I haven't checked if they are specified in OOXML (which would make them exportable to these formats).
Tested with LO 3.5.4 and 184.108.40.206alpha1 (Ubuntu 12.04). AOO 3.4.1 also does not support underline colors. So: changing platform and version.
Created attachment 71335 [details]
underline-colors: sample docs in DOC/DOCX/RTF
Sample documents created using Word 14.0 (Office 2010). And a screenshot showing the document as displayed by Word.
The RTF filter works best, but does not extend its support for underline colors to the comments.
Seems to be a valid problem: Version: 220.127.116.11.alpha0+
Build ID: fa72fc3eddbfabb82193452a4ba993b11d1584d
TinderBox: Win-x86@6, Branch:master, Time: 2013-04-18_23:11:53
Changed this bug from "DOC+DOCX" of "IMPORT+EXPORT" to "FILESAVE DOCX".
I've split this to 4 other bugs:
https://bugs.freedesktop.org/show_bug.cgi?id=56679 => FILESAVE DOCX
https://bugs.freedesktop.org/show_bug.cgi?id=65711 => FILESAVE DOC
https://bugs.freedesktop.org/show_bug.cgi?id=65708 => FILEOPEN DOC
https://bugs.freedesktop.org/show_bug.cgi?id=65710 => FILEOPEN DOCX
Created attachment 80773 [details]
DOCX containing text with underline color
Attached a DOCX that contains a single line of text with an underlined color.
When opening in LO and doing 'save as' the color is lost.
Adam Co committed a patch related to this issue.
It has been pushed to "master":
fdo#56679, fdo#65710 : fix for import and export of underline color
The patch should be included in the daily builds available at
http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
Affected users are encouraged to test the fix and report feedback.