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: 2022-05-07 07:10 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

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