diff options
author | Vojtěch Doležal <dolezvo1@cvut.cz> | 2023-03-25 13:01:30 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2023-04-04 08:23:18 +0200 |
commit | 28675af84ae8e2342bd78be3696dc09de6ce5cc5 (patch) | |
tree | b07a2ae7476c339540e3adeb3d2254bab99bae91 /include | |
parent | fb8e9b3e8ec9b03399e6cd0d47a9d08976b71ed7 (diff) |
tdf#41652: Variable width NBSP
Adds a flag that when enabled (opt-in for both old and new documents) changes behaviour of NBSP to not be strictly fixed width.
This commit also implements this behaviour such that NBSP has always the width of a standard space (0x20) on the given line. This change is only noticeable when the paragraph is justified.
Lastly a tilde or a degree character is now shown in place of NBSP when nonprintable characters are enabled, since the gray field alone is not visible in many circumstances.
Change-Id: Iabb30b5930ced62691cc4304f60c5e6dc886ed61
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/149576
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/unotools/compatibility.hxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/unotools/compatibility.hxx b/include/unotools/compatibility.hxx index 72017812ab8b..ed7b0f9d52f3 100644 --- a/include/unotools/compatibility.hxx +++ b/include/unotools/compatibility.hxx @@ -60,6 +60,8 @@ class SvtCompatibilityEntry MsWordTrailingBlanks, SubtractFlysAnchoredAtFlys, EmptyDbFieldHidesPara, + UseVariableWidthNBSP, + /// special entry: optcomp.cxx converts the other values to /// integers but not this one because it doesn't have its own /// checkbox, so keep it at the end! |