Bug 167904 - Background color hidden behind a non-breaking space in a cross-reference link
Summary: Background color hidden behind a non-breaking space in a cross-reference link
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
6.4.7.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Formatting-Mark Fields-Cross-Reference
  Show dependency treegraph
 
Reported: 2025-08-11 12:14 UTC by Bernard Choppy
Modified: 2025-08-12 08:01 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Example of the bug (16.77 KB, application/vnd.oasis.opendocument.text)
2025-08-11 12:17 UTC, Bernard Choppy
Details
Sample with text in English with added variants. (18.05 KB, application/vnd.oasis.opendocument.text)
2025-08-11 19:15 UTC, LeroyG
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bernard Choppy 2025-08-11 12:14:03 UTC
Description:
Hi,

I have got a title which includes a non-breaking space.
When I make a cross-reference link on it, everythig seems OK.
But if I try to change the character background color, it's not applied to the non-breaking space.

Steps to Reproduce:
1. Create a text file
2. Add a title including a non-breaking space
3. Somewhere else, add a cross-reference link to this title
4. Select the whole link
4. Under Format/Character, add a (not white) background color
5. Go to view, export to PDF or print

Actual Results:
The non-breaking space appears without background color on view, PDF export and paper print.

Expected Results:
The non-breaking space should appear with background color on view, PDF export and paper print.


Reproducible: Always


User Profile Reset: Yes

Additional Info:
Version: 25.2.3.2 (X86_64) / LibreOffice Community
Build ID: 520(Build:2)
CPU threads: 4; OS: Linux 6.12; UI render: default; VCL: x11
Locale: fr-FR (fr_FR.UTF-8); UI: fr-FR
Debian package version: 4:25.2.3-2
Calc: threaded
Comment 1 Bernard Choppy 2025-08-11 12:17:30 UTC
Created attachment 202278 [details]
Example of the bug

Sample of cross-reference with bug in ODT format
Comment 2 LeroyG 2025-08-11 19:15:47 UTC
Created attachment 202285 [details]
Sample with text in English with added variants.

If there is a following character with the same highlighting color, the no-break space takes this color.
Comment 3 LeroyG 2025-08-11 19:17:34 UTC
Reproducible with:

Versión: 6.4.7.2 (x64)
Id. de compilación: 639b8ac485750d5696d7590a72ef1b496725cfb5
Subprocs. CPU: 12; SO: Windows 10.0 Build 17763; Repres. IU: GL; VCL: win; 
Configuración regional: es-AR (es_AR); Idioma de IU: es-ES
Calc: threaded

Version: 24.8.7.2 (X86_64) / LibreOffice Community
Build ID: e07d0a63a46349d29051da79b1fde8160bab2a89
CPU threads: 12; OS: Windows 10 X86_64 (10.0 build 17763); UI render: Skia/Vulkan; VCL: win
Locale: es-MX (es_AR); UI: en-US
Calc: threaded
Comment 4 Bernard Choppy 2025-08-12 08:01:51 UTC
(In reply to LeroyG from comment #2)

> If there is a following character with the same highlighting color, the
> no-break space takes this color.

Confirmed here. Very strange behavior but may be a sort of workaround (not entirely because you need to add a special character)

Tried also with another non-breaking space: it works!