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 /sw/inc/IDocumentSettingAccess.hxx | |
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 'sw/inc/IDocumentSettingAccess.hxx')
-rw-r--r-- | sw/inc/IDocumentSettingAccess.hxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sw/inc/IDocumentSettingAccess.hxx b/sw/inc/IDocumentSettingAccess.hxx index b392b43e378d..c05e5d54df4b 100644 --- a/sw/inc/IDocumentSettingAccess.hxx +++ b/sw/inc/IDocumentSettingAccess.hxx @@ -126,7 +126,9 @@ enum class DocumentSettingId NO_NUMBERING_SHOW_FOLLOWBY, // drop cap punctuation: smaller dashes, bullet, asterisks, quotation marks etc. // by extending the rounding box of the glyph to the baseline - DROP_CAP_PUNCTUATION + DROP_CAP_PUNCTUATION, + // render NBSP as standard-space-width (prettier when justified) + USE_VARIABLE_WIDTH_NBSP, }; /** Provides access to settings of a document |