Bug 165810 - Writer: non-breaking space hyphen have no field shadings in text even setting is on
Summary: Writer: non-breaking space hyphen have no field shadings in text even setting...
Status: UNCONFIRMED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
25.2.1.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-03-18 20:51 UTC by BDF
Modified: 2025-08-27 06:42 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
non-breaking char background (60.49 KB, image/png)
2025-03-18 20:53 UTC, BDF
Details
non-breaking char background demo file (12.62 KB, application/vnd.oasis.opendocument.text)
2025-03-18 20:54 UTC, BDF
Details
Screenshot 25.2.2 (131.53 KB, image/png)
2025-03-18 21:39 UTC, m_a_riosv
Details
non-breaking char background - Windows 10 (46.08 KB, image/png)
2025-03-19 08:06 UTC, BDF
Details
non-breaking char background - formatting aid (60.84 KB, image/png)
2025-04-02 11:51 UTC, BDF
Details

Note You need to log in before you can comment on or make changes to this bug.
Description BDF 2025-03-18 20:51:44 UTC
Description:
The non-breaking space and non-breaking hyphen have no grey background even the setting to show it is on.

Steps to Reproduce:
1. Enter non-breaking space or hyphen
2. No grey background

Actual Results:
Grey background is *not* shown

Expected Results:
Grey background is shown


Reproducible: Always


User Profile Reset: No

Additional Info:
I know that under View - Field Shadings this behaviour can be turned off and on (alternative Ctrl + F8). No matter the setting, the field shading is not displayed.

Used help page: https://help.libreoffice.org/latest/en-US/text/swriter/01/03080000.html

---

LibreOffice Version:
Version: 25.2.1.2 (X86_64) / LibreOffice Community
Build ID: d3abf4aee5fd705e4a92bba33a32f40bc4e56f49
CPU threads: 12; OS: Linux 6.11; UI render: default; VCL: gtk3
Locale: de-AT (de_AT.UTF-8); UI: de-DE
Flatpak
Calc: threaded

System:
Operating System: KDE neon 6.3
KDE Plasma Version: 6.3.3
KDE Frameworks Version: 6.11.0
Qt Version: 6.8.2
Kernel Version: 6.11.0-19-generic (64-bit)
Graphics Platform: Wayland
Comment 1 BDF 2025-03-18 20:53:41 UTC
Created attachment 199878 [details]
non-breaking char background

The expected result is just a manually coloured background
Comment 2 BDF 2025-03-18 20:54:27 UTC
Created attachment 199879 [details]
non-breaking char background demo file

The grey background under expected results is just manually coloured
Comment 3 m_a_riosv 2025-03-18 21:38:32 UTC
Works for me, Menu>View>Formatting Marks
Version: 25.2.2.1 (X86_64) / LibreOffice Community
Build ID: 38d746d66d9b82fa248a2e90142b9dd3ddd1d6cd
CPU threads: 16; OS: Windows 11 X86_64 (10.0 build 26100); UI render: Skia/Raster; VCL: win
Locale: es-ES (es_ES); UI: en-US
Calc: CL threaded
Comment 4 m_a_riosv 2025-03-18 21:39:02 UTC
Created attachment 199881 [details]
Screenshot 25.2.2
Comment 5 BDF 2025-03-19 00:21:26 UTC
(In reply to m_a_riosv from comment #3)
> Works for me, Menu>View>Formatting Marks
> Version: 25.2.2.1 (X86_64) / LibreOffice Community
> Build ID: 38d746d66d9b82fa248a2e90142b9dd3ddd1d6cd
> CPU threads: 16; OS: Windows 11 X86_64 (10.0 build 26100); UI render:
> Skia/Raster; VCL: win
> Locale: es-ES (es_ES); UI: en-US
> Calc: CL threaded

-> "OS: Windows 11 X86_64"
I didn't notice that on my *Windows* machine either (I'll check the version and recheck the issue).
So this could be a Linux specific bug (therefore I changed the Hardware of the bug report)
Comment 6 BDF 2025-03-19 08:06:42 UTC
Created attachment 199888 [details]
non-breaking char background - Windows 10

As said so I have retested the bug on my Windows laptop. I get the same results as decribed in my first comment. It is Windows 10 though and not Windows 11 so there could be another difference.

I have also double checked that the view option is turned on. I also turned it off and on again to make sure that it's not some kind of issue with some boolean that causes a problem.

Version: 25.2.1.2 (X86_64) / LibreOffice Community
Build ID: d3abf4aee5fd705e4a92bba33a32f40bc4e56f49
CPU threads: 16; OS: Windows 10 X86_64 (10.0 build 19045); UI render: Skia/Raster; VCL: win
Locale: en-GB (de_AT); UI: de-DE
Calc: CL threaded

OS: Windows 10 Home
Version: 22H2
Build: 19045.5487
Service Pack: Windows Feature Experience Pack 1000.19061.1000.0
Comment 7 m_a_riosv 2025-03-19 12:32:58 UTC
Please test in safe mode, Menu/Help/Restart in Safe Mode
Comment 8 BDF 2025-03-19 20:02:53 UTC
(In reply to m_a_riosv from comment #7)
> Please test in safe mode, Menu/Help/Restart in Safe Mode

Linux, Windows or both?
Comment 9 BDF 2025-03-20 07:07:49 UTC
(In reply to BDF from comment #8)
> (In reply to m_a_riosv from comment #7)
> > Please test in safe mode, Menu/Help/Restart in Safe Mode
> 
> Linux, Windows or both?

I tested both and I get the same result on both systems (so Linux and Windows).

I could maytest installing LibreOffice on a live USB and check if the issue still exists after a 'clean install'
Comment 10 Juan Q. 2025-03-20 16:56:09 UTC
Hello BDF,

I can not reproduce using 

Version: 25.2.1.2 (X86_64) / LibreOffice Community
Build ID: d3abf4aee5fd705e4a92bba33a32f40bc4e56f49
CPU threads: 12; OS: Windows 10 X86_64 (10.0 build 19045); UI render: Skia/Vulkan; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL threaded

Version: 25.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 1d8ff7bd62249ad0f825eaca18ea524d9d7c6c2e
CPU threads: 12; OS: Windows 10 X86_64 (build 19045); UI render: Skia/Vulkan; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL threaded

The non-breaking space and hyphen both show a gray background for me.

To be certain the reported issue is not
related to corruption in the user profile, could you please reset your
Libreoffice profile (<https://wiki.documentfoundation.org/UserProfile>) and
re-test?

I have set the bug's status to 'NEEDINFO'. Please change it back to
'UNCONFIRMED' if the issue is still present
Comment 11 BDF 2025-03-21 12:08:02 UTC
(In reply to Juan Q. from comment #10)
> Hello BDF,
> 
> The non-breaking space and hyphen both show a gray background for me.
> 
> To be certain the reported issue is not
> related to corruption in the user profile, could you please reset your
> Libreoffice profile (<https://wiki.documentfoundation.org/UserProfile>) and
> re-test?
> 
> I have set the bug's status to 'NEEDINFO'. Please change it back to
> 'UNCONFIRMED' if the issue is still present

To ensure that it's nothing I ahve done to the system I ran a fresh install on a live USB (my guess here is that everything is as default as it can be).

1)
System:
(latest KDEneon user edition: neon-user-20250320-1319.iso)
Operating System: KDE neon 6.3
KDE Plasma Version: 6.3.3
KDE Frameworks Version: 6.12.0
Qt Version: 6.8.2
Kernel Version: 6.11.0-19-generic (64-bit)
Graphics Platform: Wayland

a)
Installed from flathub I do not see the non-breaking characters even they work. 

b)
(I guess thats the repo version)
Installer: ubuntu-noble-security-main
Version: 4:24.2.7-0ubuntu0.24.04.3

Same result as described above.

Version: 24.2.7.2 (X86_64) / LibreOffice Community
Build ID: 420(Build:2)
CPU threads: 16; OS: Linux 6.11; UI render: default; VCL: x11
Locale: en-US (C.UTF-8); UI: en-US
Ubuntu package version: 4:24.2.7-0ubuntu0.24.04.3
Calc: threaded

c)
Installed as snap package.
Version: 24.8.5.2

Same result as described above.

Version: 24.8.5.2 (X86_64) / LibreOffice Community
Build ID: 27b361b745d0ea8f99bc93dfcb7a39098dfa5fff
CPU threads: 16; OS: Linux 6.11; UI render: default; VCL: gtk3
Locale: en-US (C.UTF-8); UI: en-US
Calc: threaded

----------------------------------------------------------------------------

2)
Same hardware run under latest Fedora.
(I thought maybe it's a KDE issue and wanted to try this on GNOME as well)

## Software Information:
- **Firmware Version:**                            G513QY.316
- **OS Name:**                                     Fedora Linux 41 (Workstation Edition)
- **OS Build:**                                    (null)
- **OS Type:**                                     64-bit
- **GNOME Version:**                               47
- **Windowing System:**                            Wayland
- **Kernel Version:**                              Linux 6.11.4-301.fc41.x86_64

a)
Installed from flathub (the 'real' flathub, not the fedora server)

Same result as described above.

Version: 24.8.4.2 (X86_64)
Build ID: 480(Build:2)
CPU threads: 16; OS: Linux 6.11; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded

b)
Installed from the fedora flathub server.
I thought that this could may be an issue as there is a problem with discord that works when installed from flathub, but does not when installed form the fedora flathub server

Same result as described above.

Version: 24.8.4.2 (X86_64)
Build ID: 480(Build:2)
CPU threads: 16; OS: Linux 6.11; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded

c)
Installed as RPM.

Same result as described above.

Version: 24.8.2.1 (X86_64)
Build ID: 480(Build:1)
CPU threads: 16; OS: Linux 6.11; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded


So no matter what I install, I get the same results every time:
- The grey background is not shown
- The non-breaking character works (meaning that the words stay connected)

I also made sure that the field shading is not turned off.



While testing I had another idea: Maybe it's related to Wayland and would work under X11 as there are bugs that only show up under Wayland (eg. https://bugs.documentfoundation.org/show_bug.cgi?id=150321)
This would be strange as it did work in the past under Wayland as well, but who knows.
Comment 12 BDF 2025-03-21 22:17:42 UTC
I have now tested the issue under KDEneon under X11 and it works the same.

So it does not look like that there is an issue with Wayland vs. X11

Version: 25.2.1.2 (X86_64) / LibreOffice Community
Build ID: d3abf4aee5fd705e4a92bba33a32f40bc4e56f49
CPU threads: 12; OS: Linux 6.11; UI render: default; VCL: gtk3
Locale: de-AT (de_AT.UTF-8); UI: de-DE
Flatpak
Calc: threaded

Operating System: KDE neon 6.3
KDE Plasma Version: 6.3.3
KDE Frameworks Version: 6.11.0
Qt Version: 6.8.2
Kernel Version: 6.11.0-19-generic (64-bit)
Graphics Platform: X11 <---

Isn't there a page with AppImages with nightly builds?
Comment 13 Juan Q. 2025-03-22 04:54:43 UTC
Hello BDF, this is a link to the daily master builds.

https://dev-builds.libreoffice.org/daily/master/current.html
Comment 14 BDF 2025-03-24 20:03:01 UTC
(In reply to Juan Q. from comment #13)
> Hello BDF, this is a link to the daily master builds.
> 
> https://dev-builds.libreoffice.org/daily/master/current.html

I tested both versions on KDEneon neon-user-20250320-1319) and Fedora 41.

In short: It's the same issue both times I have already described.
_Maybe_ I have a chance to to test the issue on different hard this week (to ensure it's not both of my laptops even I don't really think so as they are quite different systems.)


Test installs:

- KDEneon
- Linux-rpm_deb-x86_64@tb99-TDF (deb)
- 2025-03-24 03:31:28

Version: 25.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: ea1404e42063be2c9737755ffb7528329515f429
CPU threads: 16; OS: Linux 6.11; UI render: default; VCL: kf5 (cairo+wayland)
Locale: en-US (C.UTF-8); UI: en-US
Calc: threaded

------------------------------

- Fedora 41
- Linux-rpm_deb-x86_64@tb99-TDF (rpm)
- 2025-03-24 03:34:34

Version: 25.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: ea1404e42063be2c9737755ffb7528329515f429
CPU threads: 16; OS: Linux 6.11; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded
Comment 15 BDF 2025-03-25 09:39:47 UTC
I have testes some more, but they all have the same result: The non-braking characters are not shown


OS: Windows 10 Enterprise
Version: 22H2
Build: 19045.5131
Feature Experience Pack: 1000.19060.1000.0

Version: 24.2.6.3_AA (X86_64) / LibreOffice Community
Build ID: 23735e228767740599e3f00b9371b05bcbf243d2
CPU threads: 4; OS: Windows 10.0 Build 19045; UI render: default; VCL: win
Locale: de-AT (de_AT); UI: de-DE
Calc: threaded

Not that as this is the company PC I can not change the version here as changing existing or installing new programs is locked.

------------------------------

I have done more testing on the same system (that is different from the two systems I have been testing on before)

The same system under KDEneon. I tested the version from flathub, the 25.8 alpha as well as the alpha in safe mode.
The result was the same.

Version: 25.2.1.2 (X86_64) / LibreOffice Community
Build ID: d3abf4aee5fd705e4a92bba33a32f40bc4e56f49
CPU threads: 4; OS: Linux 6.11; UI render: default; VCL: gtk3
Locale: en-US (C.UTF-8); UI: en-US
Flatpak
Calc: threaded

Version: 25.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: ea1404e42063be2c9737755ffb7528329515f429
CPU threads: 4; OS: Linux 6.11; UI render: default; VCL: kf5 (cairo+wayland)
Locale: en-US (C.UTF-8); UI: en-US
Calc: threaded

------------------------------

The same system under Fedora 41. I tried the version it came with, I wasn't able to install the alpha on this system as it told me that there wasn't enough space available to do so (keep in mind that I do not install the OS, but just use a live USB). So the tested version is the one that comes with Fedora 41.
However, the result was the same.

Version: 24.8.2.1 (X86_64)
Build ID: 480(Build:1)
CPU threads: 4; OS: Linux 6.11; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded

------------------------------

As I had an additional copy of Ubuntu 24.10, I tried this one as well. I didn't expect it to be any different from KDEneon as it is an Ubuntu based distro.
I tested the version that comes with Ubuntu as well as the 25.8 alpha.
But again, the results were the same.

System:
## Software Information:
- **OS Name:**                                     Ubuntu 24.10
- **OS Build:**                                    (null)
- **OS Type:**                                     64-bit
- **GNOME Version:**                               47
- **Windowing System:**                            Wayland
- **Kernel Version:**                              Linux 6.11.0-8-generic

Version: 24.8.2.1 (X86_64) / LibreOffice Community
Build ID: 480(Build:1)
CPU threads: 4; OS: Linux 6.11; UI render: default; VCL: gtk3
Locale: en-US (C.UTF-8); UI: en-US
Ubuntu package version: 4:24.8.2-0ubuntu1
Calc: threaded

Version: 25.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: ea1404e42063be2c9737755ffb7528329515f429
CPU threads: 4; OS: Linux 6.11; UI render: default; VCL: gtk3
Locale: en-US (C.UTF-8); UI: en-US
Calc: threaded
Comment 16 BDF 2025-03-25 09:40:04 UTC
Are there any additional systems I can test?
Comment 17 BDF 2025-03-26 10:03:09 UTC
(In reply to BDF from comment #16)
> Are there any additional systems I can test?

As Ubuntu and KDEneon are both (in the long or short reach) Debian based I wanted to see if I get the same result on Arch as well.

As I'm not a Arch, BTW pro I used Manjaro under KDE for this. The result was exactly the same as described.

I was only able to test the version displayed, as I have no idea to install the alpha on this system (probably 'Arch style' - so compiled directly from source).

Operating System: Manjaro Linux
KDE Plasma Version: 6.2.4
KDE Frameworks Version: 6.8.0
Qt Version: 6.8.1
Kernel Version: 6.12.4-1-MANJARO (64-bit)
Graphics Platform: X11

Version: 24.8.5.2 (X86_64) / LibreOffice Community
Build ID: 480(Build:2)
CPU threads: 16; OS: Linux 6.12; UI render: default; VCL: kf6 (cairo+xcb)
Locale: en-US (en_US.UTF-8); UI: en-US
24.8.5-4
Calc: threaded
Comment 18 BDF 2025-03-26 10:05:06 UTC
As I could not only replicate this bug on my systems under different Linux distros, but also under Windows on systems that I'm not even able to mess up since I'm not allowed to change settings, I set this bug back to "All" systems.

Is there any flag for this bug to be tested under more Linux distros to see if there is a distro where it works?
Comment 19 Buovjaga 2025-03-28 16:05:24 UTC
What if you go to Tools - Options - LibreOffice Writer - Formatting Aids, do you have "Non-breaking spaces and hyphen" checked?
Comment 20 BDF 2025-04-02 11:51:13 UTC
(In reply to Buovjaga from comment #19)
> What if you go to Tools - Options - LibreOffice Writer - Formatting Aids, do
> you have "Non-breaking spaces and hyphen" checked?

Yes, in the settings for the Formatting Aid the checkbox "Non-breaking spaces and hyphen" is activated.

When I activate the Formatting Aid in the test file, I see that the non breaking space is marked with a background and a circle inside.

Though I am not able to see the soft hyphen. I did the same test on my Windows 10 machine and there the soft hyphen shows up.
Comment 21 BDF 2025-04-02 11:51:59 UTC
Created attachment 200128 [details]
non-breaking char background - formatting aid

demo file with formatting aid turned ON
Comment 22 meagan.eggert 2025-04-22 16:54:23 UTC
Version 25.2.1.2
Build ID: d3abf4aee5fd705e4a92bba33a32f40bc4e56f49
CPU threads: 8; OS: Windows 11 x86_64
UI render: Skia/Raster; VCL: win
Locale: en-US; UI: en-US
Calc: threaded

Unable to confirm. Works fine with a grey background showing.
Comment 23 k? 2025-08-26 17:07:56 UTC
The confusion evident in this thread likely stems from the fact that on LibreOffice 7.4 (~Debian 12), "View > Field Shadings" correctly toggles the greying of NBSP fields; whereas on LibreOffice 25 (~Debian 13), both "Field Shadings" *AND* "View > Formatting Marks" need to be toggled on at the same time to have the desired effect.

This is hopefully a bug.
Comment 24 Buovjaga 2025-08-26 17:44:06 UTC
(In reply to k? from comment #23)
> The confusion evident in this thread likely stems from the fact that on
> LibreOffice 7.4 (~Debian 12), "View > Field Shadings" correctly toggles the
> greying of NBSP fields; whereas on LibreOffice 25 (~Debian 13), both "Field
> Shadings" *AND* "View > Formatting Marks" need to be toggled on at the same
> time to have the desired effect.
> 
> This is hopefully a bug.

Indeed, it seems the separation goes maybe a bit too far. Let's show this to Heiko.
Comment 25 Heiko Tietze 2025-08-27 06:42:07 UTC
(In reply to k? from comment #23)
> ... both "Field Shadings" *AND* "View > Formatting Marks" need to be
> toggled on at the same time to have the desired effect.

This has been done for bug 58434. Soft-hyphen are still shown if NBSP is off, either as hyphen on line end or as kind of strike-through effect. Of course only if the option is checked.