Bug 156130 - The tabs is automatically added to the preference after saving a docx file
Summary: The tabs is automatically added to the preference after saving a docx file
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.5.3.2 release
Hardware: All All
: medium normal
Assignee: Mike Kaganski
URL:
Whiteboard: target:24.2.0 target:7.5.6 target:7.6...
Keywords:
Depends on:
Blocks: DOCX-TableofContents
  Show dependency treegraph
 
Reported: 2023-07-03 07:48 UTC by John Tran
Modified: 2023-07-26 12:48 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
The tabs is automatically added to the preference (9.89 KB, image/png)
2023-07-03 07:48 UTC, John Tran
Details
The tabs is automatically added to the preference (9.89 KB, image/png)
2023-07-03 07:50 UTC, John Tran
Details
an example file (6.10 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2023-07-04 04:46 UTC, John Tran
Details

Note You need to log in before you can comment on or make changes to this bug.
Description John Tran 2023-07-03 07:48:51 UTC
Created attachment 188168 [details]
The tabs is automatically added to the preference

When I tried to update index and save a docx file. The writer mess my preference. The tabs is automatically added to the preference that happened in vesion 7.5.3+ except 7.5.2.x
Comment 1 John Tran 2023-07-03 07:50:29 UTC
Created attachment 188169 [details]
The tabs is automatically added to the preference
Comment 2 Gabor Kelemen (allotropia) 2023-07-03 19:01:54 UTC
Could you please attach a simple example file? That would help immensely.
Comment 3 John Tran 2023-07-04 04:46:00 UTC
Created attachment 188200 [details]
an example file

I uploaded a docx file. I hope it could help
Comment 4 QA Administrators 2023-07-05 03:14:06 UTC Comment hidden (obsolete)
Comment 5 Gabor Kelemen (allotropia) 2023-07-10 14:27:17 UTC
Thanks, confirming in

Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 77fca616e0bd79e0b405fd0b3543cf8e94e15df3
CPU threads: 15; OS: Windows 10.0 Build 19045; UI render: default; VCL: win
Locale: de-DE (hu_HU); UI: en-US
Calc: threaded

When the TOC is updated, it looks like on the screenshot, but in Word it is a lot more condensed.

Started in:

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

author	Mike Kaganski <mike.kaganski@collabora.com>	Fri Mar 24 11:01:56 2023 +0300
committer	Mike Kaganski <mike.kaganski@collabora.com>	Fri Mar 24 16:38:51 2023 +0000

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

Before this the TOC looked like in Word after the update.

Adding CC to: Mike Kaganski
Comment 6 Mike Kaganski 2023-07-10 18:22:55 UTC
https://gerrit.libreoffice.org/c/core/+/154281
Comment 7 Mike Kaganski 2023-07-10 18:24:01 UTC
(In reply to Gabor Kelemen (allotropia) from comment #5)
> Before this the TOC looked like in Word after the update.

Not quite. Before this, the TOC missed tab stops between chapter number and chapter name :)
Comment 8 Commit Notification 2023-07-11 03:04:22 UTC
Mike Kaganski committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/b915dd9e1559870045481403806dd073f4fb5818

tdf#156130: Use default tab stop when TOC*N style doesn't define one

It will be available in 24.2.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 9 Commit Notification 2023-07-14 09:24:24 UTC
Mike Kaganski committed a patch related to this issue.
It has been pushed to "libreoffice-7-5":

https://git.libreoffice.org/core/commit/2093a4b0b42f33ac9b00de5bf8357e2b3ec470ca

tdf#156130: Use default tab stop when TOC*N style doesn't define one

It will be available in 7.5.6.

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 10 Commit Notification 2023-07-26 12:48:27 UTC
Mike Kaganski committed a patch related to this issue.
It has been pushed to "libreoffice-7-6":

https://git.libreoffice.org/core/commit/5b9471ad3698aa7892985299b169a70b4e058443

tdf#156130: Use default tab stop when TOC*N style doesn't define one

It will be available in 7.6.0.2.

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.