Bug 163363 - FORMATTING Table of contents uses wrong fill character when importing from DOCX
Summary: FORMATTING Table of contents uses wrong fill character when importing from DOCX
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
24.8.2.1 release
Hardware: ARM macOS (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: TableofContents-Indexes
  Show dependency treegraph
 
Reported: 2024-10-09 08:29 UTC by goetz.fabian
Modified: 2024-10-17 18:10 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
A sample document illustrating the bug. (7.19 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2024-10-09 08:30 UTC, goetz.fabian
Details
Screenshot showing the state of the table of contents before updating the index. (246.73 KB, image/png)
2024-10-09 08:30 UTC, goetz.fabian
Details
Screenshot showing the table of contents after updating the index. (237.83 KB, image/png)
2024-10-09 08:31 UTC, goetz.fabian
Details
Screenshot showing the index settings. (160.91 KB, image/png)
2024-10-09 08:31 UTC, goetz.fabian
Details

Note You need to log in before you can comment on or make changes to this bug.
Description goetz.fabian 2024-10-09 08:29:07 UTC
Description:
When importing a DOCX file that includes a table of contents, the fill character between the heading and the page number is always the dot ("."), even if an underscore should be used. The problem appears after updating the index. Before updating it, the underscore is still shown, after updating, it is replaced by dots. When updating the same document in Microsoft Word, the issue does not appear.

I have attached a sample document that exhibits the problem. Furthermore, I have attached screenshots illustrating the issue (one before the update, one after the update and one showing the wrong settings).

Steps to Reproduce:
1. Open the attached file “Title.docx”.
2. Note that the table of contents uses underscores as leader characters.
3. Right-click the table of contents and select “Update Index”.
4. Note that dots are used instead of underscores. 

Actual Results:
Dots are used as fill characters after updating the table of contents.

Expected Results:
Underscores should be used as fill characters after updating the table of contents.


Reproducible: Always


User Profile Reset: No

Additional Info:
Version: 24.8.2.1 (AARCH64) / LibreOffice Community
Build ID: 0f794b6e29741098670a3b95d60478a65d05ef13
CPU threads: 10; OS: macOS 15.1; UI render: Skia/Metal; VCL: osx
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded
Comment 1 goetz.fabian 2024-10-09 08:30:07 UTC
Created attachment 196975 [details]
A sample document illustrating the bug.
Comment 2 goetz.fabian 2024-10-09 08:30:39 UTC
Created attachment 196976 [details]
Screenshot showing the state of the table of contents before updating the index.
Comment 3 goetz.fabian 2024-10-09 08:31:01 UTC
Created attachment 196977 [details]
Screenshot showing the table of contents after updating the index.
Comment 4 goetz.fabian 2024-10-09 08:31:22 UTC
Created attachment 196978 [details]
Screenshot showing the index settings.
Comment 5 Samuel Carleial 2024-10-14 20:28:33 UTC
(My first contribution here :-))

I confirm that the issue is reproducible:

Version: 24.8.2.1 (X86_64) / LibreOffice Community
Build ID: 0f794b6e29741098670a3b95d60478a65d05ef13
CPU threads: 8; OS: macOS 13.7; UI render: Skia/Metal; VCL: osx
Locale: pt-BR (pt_BR.UTF-8); UI: en-US
Calc: threaded

Version: 25.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 3287deb82ef0ee2048f733ae981961f527888727
CPU threads: 8; OS: macOS 13.7; UI render: Skia/Metal; VCL: osx
Locale: pt-BR (pt_BR.UTF-8); UI: en-US
Calc: threaded