Bug 94404 - Non-breaking spaces will be ignored in cross-reference fields
Summary: Non-breaking spaces will be ignored in cross-reference fields
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
: 129853 145824 161316 (view as bug list)
Depends on:
Blocks: Fields-Cross-Reference
  Show dependency treegraph
Reported: 2015-09-21 10:12 UTC by Stefan
Modified: 2024-05-31 07:35 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:

Example for ignoring non-breaking spacesin fields (11.00 KB, application/vnd.oasis.opendocument.text)
2015-09-21 10:12 UTC, Stefan
test file.odt (25.82 KB, application/vnd.oasis.opendocument.text)
2024-05-31 07:34 UTC, Orwel
test file.pdf (61.20 KB, application/pdf)
2024-05-31 07:35 UTC, Orwel

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan 2015-09-21 10:12:14 UTC
Created attachment 118895 [details]
Example for ignoring non-breaking spacesin fields

If you cross reference to a text with non-breaking spaces, this non-breaking spaces will be handled as "normal" breaking spaces in the resulting field.

This is ugly if you reference to non-breaking-spaced names like "E. Domingos de Sousa" or "C. H. Schulz" an the result is

"... E. Domingos 
de Sousa"

"... C. 
H. Schulz"
Comment 1 Cor Nouws 2015-09-21 11:07:18 UTC
Thanks Stefan. Confirm the behaviour.
(Imagine you've just learned someone of Non breaking spaces and the next step is reference fields ;\ )

See the same in version 3.3.0
Comment 2 Niek 2015-09-30 18:25:52 UTC
The same happens when you have a header based on the Chapter. A non-breaking space in the chapter text will be a normal space in the header. I get a header like this:

Stephanie - Chapter 13: Two Dinners, a Send Off and a Business Plan, Part

Comment 3 QA Administrators 2016-11-08 10:26:39 UTC Comment hidden (obsolete)
Comment 4 Thomas Lendo 2017-05-31 19:19:46 UTC
Bug still present in Version:
Build ID: 5c16d16ed3db32f922b2aeaad49592d2615c7e2c
CPU threads: 4; OS: Linux 4.8; UI render: default; VCL: gtk2; 
TinderBox: Linux-rpm_deb-x86_64@70-TDF, Branch:master, Time: 2017-05-26_23:00:41
Locale: de-DE (de_DE.UTF-8); Calc: group
Comment 5 QA Administrators 2018-06-01 02:15:45 UTC Comment hidden (obsolete)
Comment 6 Joakim 2019-03-13 10:57:43 UTC
This bug is still present.

Build ID: libreoffice-
Comment 7 Dieter 2020-01-07 15:28:17 UTC
*** Bug 129853 has been marked as a duplicate of this bug. ***
Comment 8 Dieter 2021-12-07 07:12:25 UTC
*** Bug 145824 has been marked as a duplicate of this bug. ***
Comment 9 Dieter 2021-12-07 07:12:58 UTC
Still present in

Version: (x64) / LibreOffice Community
Build ID: 27d75539669ac387bb498e35313b970b7fe9c4f9
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
Comment 10 Dieter 2021-12-07 07:15:10 UTC
Might be treated as duplicate of bug 39754.
Comment 11 Stefan 2023-02-02 16:54:08 UTC
Still present in
Comment 12 m_a_riosv 2024-05-29 21:04:45 UTC
*** Bug 161316 has been marked as a duplicate of this bug. ***
Comment 13 Orwel 2024-05-31 07:34:30 UTC
Hi, I am not sure if my reported bug 161316 is really a duplicate, as I also mentioned problems with non-breaking hyphen and LOST(!) TEXT in cross-reference et the end of line in that bug, which are not mentioned in this bug. I also provided an example file in bug 161316, which I also put here. I think this bug (or Bug 39754) should be expanded also in the description to be clear about all parts of the bug,  so that the LO team can handle all the problems in one step.

And I would like to add that this bug has not been fixed since 2015 (almost 9 years), which should make it a priority, as LOST text is a critical bug in my opinion.

Still present in version:
Comment 14 Orwel 2024-05-31 07:34:48 UTC
Created attachment 194472 [details]
test file.odt
Comment 15 Orwel 2024-05-31 07:35:03 UTC
Created attachment 194473 [details]
test file.pdf