Bug 151126 - FORMATTING - Unicode combining diacritics in heading titles changes style in corresponding index/table of contents entry
Summary: FORMATTING - Unicode combining diacritics in heading titles changes style in ...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.3.4.2 release
Hardware: All All
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: TableofContents-Indexes Diacritics
  Show dependency treegraph
 
Reported: 2022-09-22 10:27 UTC by setun.90
Modified: 2024-05-24 14:03 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Minimum example in safe mode (12.42 KB, application/vnd.oasis.opendocument.text)
2022-09-22 10:32 UTC, setun.90
Details

Note You need to log in before you can comment on or make changes to this bug.
Description setun.90 2022-09-22 10:27:11 UTC
Description:
A heading title with a combining diacritic will cause the heading's style to override the style of the corresponding entry in the index or table of contents, from the occurrence of the offending glyph onward. For example, if the heading's style specifies italics and the heading's text has the word 'système', the corresponding entry in the table of contents will be italicized from 'è' onward.

Steps to Reproduce:
1. Add headings with words written with combining diacritics and styled with italics (e.g. 'Système' in a 4th level heading).
2. Insert a table of contents.

Actual Results:
The text of the corresponding table of contents entry is normally styled before the è and italicized thereafter.

Expected Results:
The whole text of the corresponding table of contents entry is normally styled.


Reproducible: Always


User Profile Reset: Yes


OpenGL enabled: Yes

Additional Info:
This also happens on update. Possibly related to https://ask.libreoffice.org/t/index-style-keep-it-consistent/39884? The solution in there is the only workaround I have for now, and it must be applied on every update to the table of contents.
Comment 1 setun.90 2022-09-22 10:32:46 UTC
Created attachment 182616 [details]
Minimum example in safe mode

Update the index after opening to trigger.
Comment 2 Dieter 2022-10-07 15:11:22 UTC
I confirm it with

Version: 7.4.1.2 (x64) / LibreOffice Community
Build ID: 3c58a8f3a960df8bc8fd77b461821e42c061c5f0
CPU threads: 4; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: en-GB
Calc: CL

Steps:
1. Open attachment 182616 [details]
2. Update TOC

Actual result:
Only part of "Système" (Heading level 4) has style of corresponding heading (italics)

Expected result:
The whole text of the corresponding table of contents entry is normally styled.