https://bugs.documentfoundation.org/show_bug.cgi?id=143557

            Bug ID: 143557
           Summary: docx highlighting lost in round trip through odt
                    format
           Product: LibreOffice
           Version: 7.0.0.3 release
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Writer
          Assignee: libreoffice-bugs@lists.freedesktop.org
          Reporter: l...@deller.id.au

Description:
LibreOffice preserves text highlighting when opening a doc/docx file and saving
it again.  However when the file is saved as odt, then the odt converted back
to doc/docx, then the highlighting is converted to shading.  While this looks
visually the same, it surprises users who can no longer remove the highlighting
in Microsoft Word as expected.

Steps to Reproduce:
1. Open the attached highlighting.docx file (or any doc/docx produced by
Microsoft Word containing highlighting will do)
2. Save As highlighting-output.docx
3. Save As highlighting-output.odt
4. Close document
5. Open highlighting-output.odt
6. Save As highlighting-via-odt.docx
7. For each of the two output docx files (highlighting-output.docx
 and highlighting-via-odt.docx) check whether this still contains highlighting

If you have access to Microsoft Word:
7A. Open the docx file in Word and try to remove the yellow highlighting
according to the documentation at
https://support.microsoft.com/en-us/office/apply-or-remove-highlighting-1747d808-6db7-4d49-86ac-1f0c3cc87e2e

If you do not have access to Microsoft Word:
7B. Unzip the docx file, open the contained word/document.xml, and search for
an element starting "<w:highlight"

Actual Results:
7A:
✅ highlighting-output.docx: highlighting can be removed in Word
❌ highlighting-via-odt.docx: highlighting cannot be removed in Word

7B: 
✅ highlighting-output.docx: "<w:highlight" element is present
❌ highlighting-via-odt.docx: "<w:highlight" element is missing

Expected Results:
7A: removing the highlighting should work in both files
7B: both files should contain an element starting "<w:highlight"


Reproducible: Always


User Profile Reset: Yes



Additional Info:
Related item:
bug 131920: Full text highlight + shading support
(that one is a bigger item involving UI changes, more than what is required to
solve this issue here)

Related setting:
Tools -> Options -> Load/Save -> Microsoft Office -> Character Highlighting
"Export As" defaults to "Shading".  Setting this to "Highlighting" avoids this
issue here but it breaks export of shading, effectively reintroducing bug
125268.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to