Bug 162626 - Justified spacing of text goes beyond margin
Summary: Justified spacing of text goes beyond margin
Status: RESOLVED DUPLICATE of bug 161810
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
24.2.5.2 release
Hardware: All Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Paragraph
  Show dependency treegraph
 
Reported: 2024-08-25 11:45 UTC by J22Gim
Modified: 2024-10-18 14:17 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
test file (66.00 KB, application/vnd.oasis.opendocument.text)
2024-08-25 11:47 UTC, J22Gim
Details
original test file saved as Flat Text ODT (145.45 KB, application/vnd.oasis.opendocument.text-flat-xml)
2024-08-25 19:19 UTC, J22Gim
Details

Note You need to log in before you can comment on or make changes to this bug.
Description J22Gim 2024-08-25 11:45:09 UTC
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
Comment 1 J22Gim 2024-08-25 11:47:52 UTC
Created attachment 196007 [details]
test file
Comment 2 V Stuart Foote 2024-08-25 13:54:23 UTC
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
Comment 3 J22Gim 2024-08-25 19:18:32 UTC
When saving as flat text ODT, I get exactly the same issue. See the attached flat_TestFile.
Comment 4 J22Gim 2024-08-25 19:19:05 UTC
Created attachment 196012 [details]
original test file saved as Flat Text ODT
Comment 5 V Stuart Foote 2024-08-25 20:18:43 UTC
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.
Comment 6 Justin L 2024-10-18 14:17:54 UTC

*** This bug has been marked as a duplicate of bug 161810 ***