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
Created attachment 196975 [details] A sample document illustrating the bug.
Created attachment 196976 [details] Screenshot showing the state of the table of contents before updating the index.
Created attachment 196977 [details] Screenshot showing the table of contents after updating the index.
Created attachment 196978 [details] Screenshot showing the index settings.
(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