Bug 148686 - Wrapping does not kick in early enough in ToC lines
Summary: Wrapping does not kick in early enough in ToC lines
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.4.0.0 alpha0+
Hardware: All All
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: TableofContents-Indexes
  Show dependency treegraph
 
Reported: 2022-04-20 15:04 UTC by Eyal Rozenberg
Modified: 2024-05-07 21:33 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Section of a ToC with inappropriate wrapping at items 22, 34, 88 (153.63 KB, image/png)
2022-04-20 15:04 UTC, Eyal Rozenberg
Details
A document exhibiting the bug (59.65 KB, application/vnd.oasis.opendocument.text)
2022-04-20 15:27 UTC, Eyal Rozenberg
Details
Screenshot of rendering of document in 179685 (92.28 KB, image/png)
2024-05-07 21:33 UTC, Eyal Rozenberg
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Eyal Rozenberg 2022-04-20 15:04:58 UTC
Created attachment 179684 [details]
Section of a ToC with inappropriate wrapping at items 22, 34, 88

Consider the ToC in the attached screenshot, and specifically items 22, 34, 88.

In those items, the text fits within a single line, but not when one also adds the number (and some obligatory space between them); so, the line is broken. However, it is broken inappropriately:

1. There are guiding dots after the last word, even though they guide you nowhere.
2. The text is not justified, i.e. the end of the last word (= the leftmost word) is not aligned with the end of the column's text area.
3. The text imposes on the vertical area of the paragraph where the numbers appear in other lines.

All three are bugs IMHO.
Comment 1 Eyal Rozenberg 2022-04-20 15:27:18 UTC
Created attachment 179685 [details]
A document exhibiting the bug

You can use this document to see the effect in LO Writer itself.
Comment 2 Dieter 2022-05-07 07:10:06 UTC
I confirm it with

Version: 7.4.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: 83d0f2eebae41d431d9a5bfd1a918523977752d0
CPU threads: 4; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: en-GB
Calc: CL
Comment 3 QA Administrators 2024-05-07 03:15:05 UTC Comment hidden (obsolete)
Comment 4 Eyal Rozenberg 2024-05-07 21:30:50 UTC
Bug still manifesting with:

Version: 24.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 3f2d56d486da2006e24444cfa6f2f63700a14fae
CPU threads: 4; OS: Linux 6.6; UI render: default; VCL: gtk3
Locale: he-IL (en_IL); UI: en-US
Comment 5 Eyal Rozenberg 2024-05-07 21:33:13 UTC
Created attachment 194019 [details]
Screenshot of rendering of document in 179685

Note the third item from the bottom: The text extends into the area which should be reserved for page numbers.