Actual Results: When changing text color back to "Default" in LibreOffice Writer, the previous color remains visible when the ODT file is opened in other editors (e.g., OnlyOffice), even though it appears correctly in LibreOffice. The formatting only truly resets if "Clear Direct Formatting" is applied. Expected Results: Setting the text color to "Default" or "Automatic" should completely remove the previous color attribute from the ODT XML, ensuring consistent rendering across different ODT-compliant software. 1. Open a new Writer document and type some text. 2. Change the text color to "Red". 3. Select the text and change the color back to "Automatic" or "Black" (Default). 4. Save the file as .odt. 5. Open the same file with OnlyOffice (or another ODT viewer). 6. Observe that the text still appears "Red" in the external viewer. 7. Go back to LibreOffice, select the text, use "Clear Direct Formatting" (Ctrl+M), and save. 8. Re-open in OnlyOffice: the color is now correct.
Please attach an ODT that you created using your procedure, that is shown in OnlyOffice wrong. Note that your expectation that "Setting the text color to "Default" or "Automatic" should completely remove the previous color attribute from the ODT XML" can be completely wrong expectation. Setting the color to default may apply something atop of another setting, e.g. when considering style-level formatting vs. direct formatting, or paragraph-level formatting vs. character-run-level formatting, or when using tracked changes, etc. So the very likely cause is not "Writer does something wrong, and should change", but "OnlyOffice support of ODT has a bug, and then should fix it". But what I wrote is just a speculation, and checking specific file could clarify.
actually I used "default" so that could be the case. BTW cannot attach the file for copyright purposes
(In reply to Salvodif from comment #2) > actually I used "default" so that could be the case. > > BTW cannot attach the file for copyright purposes Please create a sample file with a couple of lines. Please paste here the information in Menu>Help>About LibreOffice. (There is an icon in the center to copy the information).