Description: I got a DOCX document, edited and saved as ODT. But I find that sometimes the text goes beyond the page margins. I was able to reproduce it in the attached document. Steps to Reproduce: 1. open the test file 2. the file is self-explanatory Actual Results: The text goes beyond the right margin Expected Results: No text beyond margins Reproducible: Always User Profile Reset: Yes Additional Info: It's all included in the file
Created attachment 196007 [details] test file
Confirmed. Save to Flat ODF XML (.fodt), or edit the content.xml and style.xml of the archive. The justified text span is broken (multiple RSIDs) into segments. The MSO imposed break at the "-- do dd" is causing the issue with spacing of text beyond page margin. If I remove the T4 & T5 text formatting, leaving it just T3 the style applied justified paragraph wraps correctly. => NOB? or is there an issue with our ww8 filter? Version: 25.2.0.0.alpha0+ (X86_64) / LibreOffice Community Build ID: a05432f02b6441b66addc0f22f1b8444557ac37b CPU threads: 8; OS: Windows 10 X86_64 (10.0 build 19045); UI render: Skia/Vulkan; VCL: win Locale: en-US (en_US); UI: en-US Calc: CL threaded
When saving as flat text ODT, I get exactly the same issue. See the attached flat_TestFile.
Created attachment 196012 [details] original test file saved as Flat Text ODT
As expected. Even when saved to ODF Flat XML the MSO source P4 text spans around the "do dd" break remain. That is a filter import issue. You could edit the *.fodt XML directly (any text or XML editor will do) to remove the T5 and T2 text style name labeling--collapsing P4 down to just the T4 text style and see the justified text runs are handled correctly.
*** This bug has been marked as a duplicate of bug 161810 ***