Bug 98265 - Poor formatting in Table of Contents with Multiple Fonts
Summary: Poor formatting in Table of Contents with Multiple Fonts
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
5.1.0.3 release
Hardware: All Windows (All)
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: TableofContents-Indexes
  Show dependency treegraph
 
Reported: 2016-02-29 02:19 UTC by Tim Chambers
Modified: 2025-02-02 22:10 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
test case (353.01 KB, application/vnd.oasis.opendocument.text)
2016-02-29 02:21 UTC, Tim Chambers
Details
This is the formatting I am aiming for (60.64 KB, application/pdf)
2016-03-10 00:35 UTC, Tim Chambers
Details
This is the odd format with symbol in the table caption (68.31 KB, application/pdf)
2016-03-10 00:36 UTC, Tim Chambers
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tim Chambers 2016-02-29 02:19:02 UTC
User-Agent:       Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.116 Safari/537.36
Build Identifier: LibreOffice 5.1.0.3

I have a table of contents field set to give me a list of the tables in my document. I am using the font "Calibri" as the base font, but have some tables where I have used the unit "micrograms per litre), with a mu symbol (font Symbol, character hex U+F06D.
If this character is present, the formatting for the entry in the table is very badly justified (stretched too far to the right). If I remove the character and update the table, the formatting is correct.

Reproducible: Always

Actual Results:  
will submit sample file


[Information automatically included from LibreOffice]
Locale: en-US
Module: TextDocument
[Information guessed from browser]
OS: Windows (All)
OS is 64bit: no


Reset User Profile?No
Comment 1 Tim Chambers 2016-02-29 02:21:11 UTC
Created attachment 123066 [details]
test case

If you go to the caption for Table 2 and remove the "ug/L" then update the "List of Tables in Text table, the formatting is corrected.
Comment 2 Buovjaga 2016-03-09 08:53:13 UTC
I see no problem with justification. Yet, in 5.1, the symbol is not shown in the ToC. In 5.2, it is shown as a box.

Win 7 Pro 64-bit, Version: 5.1.0.3 (x64)
Build ID: 5e3e00a007d9b3b6efb6797a8b8e57b51ab1f737
CPU Threads: 4; OS Version: Windows 6.1; UI Render: default; 
Locale: fi-FI (fi_FI)

Version: 5.2.0.0.alpha0+
Build ID: b89feb8018bf3610faf01e73995d576f6566e20b
CPU Threads: 4; OS Version: Windows 6.1; UI Render: default; 
TinderBox: Win-x86@39, Branch:master, Time: 2016-03-07_03:36:17
Locale: fi-FI (fi_FI)
Comment 3 Tim Chambers 2016-03-10 00:35:24 UTC
Created attachment 123454 [details]
This is the formatting I am aiming for
Comment 4 Tim Chambers 2016-03-10 00:36:09 UTC
Created attachment 123455 [details]
This is the odd format with symbol in the table caption
Comment 5 Tim Chambers 2016-03-10 04:24:59 UTC
I have tried replacing the Symbol character with the equivalent Opensymbol character (OpenSymbol U+3BC) in the table caption instead of the (proprietary) SYmbol (Symbol U+F06D).  The correct behaviour occurs.  Not sure why there is a difference as the Symbol versions work correctly in WOrd 2013, which I also have (but do not like).
Comment 6 E M Culver 2016-05-11 23:38:10 UTC Comment hidden (off-topic)
Comment 7 E M Culver 2016-05-12 00:06:55 UTC
I'm getting the same sort of problem with tables of contents -- when I update, one of the 2nd level headings (font:  Liberation Serif) gets converted to OpenSymbol.  This also happens for all the automatically inserted, but not manually inserted, captions:  they get inserted in OpenSymbol font.  

For the OpenSymbol font entries in the ToC, if I select the entry and select "remove direct formatting" (^M), the text returns to the normal font.
Comment 8 Buovjaga 2016-05-12 10:42:45 UTC
New per comment 7
Comment 9 QA Administrators 2017-05-22 13:39:58 UTC Comment hidden (obsolete)
Comment 10 QA Administrators 2021-01-31 04:48:00 UTC Comment hidden (obsolete)
Comment 11 QA Administrators 2023-02-01 03:20:42 UTC Comment hidden (obsolete)
Comment 12 QA Administrators 2025-02-01 03:12:25 UTC Comment hidden (obsolete)
Comment 13 Tim Chambers 2025-02-02 22:10:59 UTC
Version: 24.8.4.2 (X86_64) / LibreOffice Community
Build ID: 480(Build:2)
CPU threads: 12; OS: Linux 6.9; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-GB
Ubuntu package version: 4:24.8.4~rc2-0ubuntu0.22.04.1~lo1
Calc: threaded