Created attachment 198830 [details] forum-mso-de-116948.docx: example document The ToC on the first two pages is ragged - in the contents and also (by extension) in the page numbers. This started in 25.2 with commit f806fc136b3410ec9a1e09320d100c78b33c867b Author: Oliver Specht on Thu Jun 13 14:49:16 2024 +0200 tdf#137335 calculate paragraph height in RTF/DOCX Steps to reproduce: 1.) open forum-mso-de-116948.docx Noticed that the page numbers in the table of contents are not nicely lined up. Found by Collabora's mso-test
Created attachment 198831 [details] forum-mso-de-116948.docx_mso.pdf: how it looks in Word 2019
I'm noticing that any content containing a space is causing the separate words to overlap.
I think the key differentiator with this document is that the page numbers are tabOverMargin - placed beyond the page margin.
confirm Version: 25.8.0.0.alpha0+ (X86_64) / LibreOffice Community Build ID: 7da1497aa462e2b719aa9b308a749caf7b9a19b1 CPU threads: 4; OS: Linux 6.8; UI render: default; VCL: gtk3 Locale: cs-CZ (cs_CZ.UTF-8); UI: en-US Calc: threaded
Hi Justin I got some different source from bibisect-252-linux: https://git.libreoffice.org/core/+/857dd6000c877f2c6d8bb73806a8557fa0baea73%5E%21 commit 857dd6000c877f2c6d8bb73806a8557fa0baea73 [log] author László Németh <nemeth@numbertext.org> Mon Sep 16 13:36:41 2024 +0200 committer László Németh <nemeth@numbertext.org> Tue Sep 17 09:18:57 2024 +0200 tree b4179656345bce84361f3a0d79a35a493c4182db parent 29d6065d9a687f1d86f26f53587e108f8c951a4a [diff] tdf#161810 sw smart justify: fix overhanging lines containing tabs Can you double check if it's correct?
@Gábor, Justin: it seems, reverting my commit fixes the problem, and my commit has already got a better fix in Bug 164499, so I am going to revert it in the master, too. Thanks for the investigation and report!
Created attachment 199577 [details] forum-mso-de-116948.docx_bad_layout.pdf: how it looks in LibreOffice
Proposed fix: https://gerrit.libreoffice.org/c/core/+/182433
László Németh committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/434af9dea64f95e1d5f93a5563106b9124bb17af tdf#164905 tdf#164499 sw smart justify: fix overlapping text in ToC It will be available in 25.8.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
The correct bisect - in comment 5 - was backported to 24.2.7.