https://bugs.documentfoundation.org/show_bug.cgi?id=148956
Bug ID: 148956 Summary: DOCX Cleared direct formatting in styled paragraph lingers Product: LibreOffice Version: 4.0.0.3 release Hardware: All OS: All Status: UNCONFIRMED Keywords: bibisectRequest, regression Severity: normal Priority: medium Component: Writer Assignee: libreoffice-bugs@lists.freedesktop.org Reporter: aron.bu...@gmail.com Blocks: 107318, 108760 Created attachment 179955 --> https://bugs.documentfoundation.org/attachment.cgi?id=179955&action=edit Sample DOCX The attached sample, first created as ODT, then saved as DOCX, - has a line (paragraph) formatted with Heading 2 style, and some extra direct formatting (24 pt size and Italic) - and another (paragraph) formatted with Text Body style. If you press enter at the end of the heading, the new paragraph: - is formatted with Text Body style (which is the "Next style" for Heading 2), - keeps the direct formatting. That is all expected so far. Not sure why the direct formatting is kept, but that seems to be on purpose. Let's say you want to get rid of the direct formatting in the heading: select the first line, and press Ctrl + M, then unselect, press Enter at the end of the line, and type a few characters. => In the ODT file, the newly added characters have no direct formatting, as expected. In the DOCX file, the newly added characters have direct formatting, the same that was cleared a step before, which seems to be a bug. Note that in the DOCX case after clearing the direct formatting, if the caret is at the end of line, it will still show the direct formatting set on the toolbar (font size, italic). When reproducing, start with saving the ODT as DOCX and reloading, since the bug could have a DOCX export aspect. Observed using LO 7.4.0.0.alpha0+ (75fe4051320ef9b1f4323fa958e8df3db2066882), 5.0.0.5 / Ubuntu. In 4.4.0.3, Heading 2 gets a "1" numbering after saving to DOCX and reloading, and when pressing enter after clearing formatting, the Next style setting isn't honored, and Heading 2 style is kept. In 4.1.0.4 and 4.3.0.4, when pressing enter after clearing formatting, the Next style setting isn't honored, and Heading 2 style is kept, including the direct formatting. In 4.0.0.3, when pressing enter after clearing formatting, the Next style setting isn't honored, and Heading 2 style is kept, but direct formatting is gone. In 3.6.0.4 it behaves as expected. => regression Referenced Bugs: https://bugs.documentfoundation.org/show_bug.cgi?id=107318 [Bug 107318] [META] Clear formatting and clear direct formatting issues https://bugs.documentfoundation.org/show_bug.cgi?id=108760 [Bug 108760] [META] DOCX (OOXML) style bugs and enhancements -- You are receiving this mail because: You are the assignee for the bug.