Bug 154360

Summary: DOCX ToC: Tab stop between chapter number and text converts to a space
Product: LibreOffice Reporter: Mike Kaganski <mikekaganski>
Component: WriterAssignee: Mike Kaganski <mikekaganski>
Status: RESOLVED FIXED    
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: All   
OS: All   
See Also: https://bugs.documentfoundation.org/show_bug.cgi?id=154695
https://bugs.documentfoundation.org/show_bug.cgi?id=156130
Whiteboard: target:7.6.0 target:7.5.3
Crash report or crash signature: Regression By:

Description Mike Kaganski 2023-03-24 07:51:47 UTC
Open attachment 186130 [details], and  update the table of contents.

The tab stops between the chapter numbers become spaces, and so, the original alignment is lost.
Comment 1 Sophie Sipasseuth 2023-03-24 09:13:39 UTC
Hello Mike Kaganski,

Thank you for reporting the bug. I can confirm that the bug is present.

Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 676602a1a4e53e88d9f4664579497d534f6ae9c2
CPU threads: 4; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: fr-FR (fr_FR); UI: fr-FR
Calc: CL threaded
Comment 2 Commit Notification 2023-03-24 16:39:45 UTC
Mike Kaganski committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/7eedd76d93ef04d11ae2e1bfb1e7d264aab88f40

tdf#154360: use TOC(N) styles in DOCX as the source of ToC tab stop position

It will be available in 7.6.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.
Comment 3 Commit Notification 2023-04-04 08:56:05 UTC
Mike Kaganski committed a patch related to this issue.
It has been pushed to "libreoffice-7-5":

https://git.libreoffice.org/core/commit/364051901c555d9609ea5f9e9427f3098a2f0bab

tdf#154360: use TOC(N) styles in DOCX as the source of ToC tab stop position

It will be available in 7.5.3.

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.