summaryrefslogtreecommitdiff
path: root/sw/source/filter/xml/xmlimp.cxx
diff options
context:
space:
mode:
authorVojtěch Doležal <dolezvo1@cvut.cz>2023-03-25 13:01:30 +0100
committerMiklos Vajna <vmiklos@collabora.com>2023-04-04 08:23:18 +0200
commit28675af84ae8e2342bd78be3696dc09de6ce5cc5 (patch)
treeb07a2ae7476c339540e3adeb3d2254bab99bae91 /sw/source/filter/xml/xmlimp.cxx
parentfb8e9b3e8ec9b03399e6cd0d47a9d08976b71ed7 (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 'sw/source/filter/xml/xmlimp.cxx')
-rw-r--r--sw/source/filter/xml/xmlimp.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/source/filter/xml/xmlimp.cxx b/sw/source/filter/xml/xmlimp.cxx
index 6ea193f2bc3f..eaf3a6bec72e 100644
--- a/sw/source/filter/xml/xmlimp.cxx
+++ b/sw/source/filter/xml/xmlimp.cxx
@@ -1263,7 +1263,8 @@ void SwXMLImport::SetConfigurationSettings(const Sequence < PropertyValue > & aC
"ProtectForm",
"MsWordCompTrailingBlanks",
"SubtractFlysAnchoredAtFlys",
- "EmptyDbFieldHidesPara"
+ "EmptyDbFieldHidesPara",
+ "UseVariableWidthNBSP",
};
bool bAreUserSettingsFromDocument = officecfg::Office::Common::Load::UserDefinedSettings::get();