diff options
author | Oliver Specht <oliver.specht@cib.de> | 2016-02-10 16:57:14 +0100 |
---|---|---|
committer | Oliver Specht <oliver.specht@cib.de> | 2016-02-11 07:22:44 +0000 |
commit | 5152c43109c9a35f30fc9b0f478c1fbaf01a1143 (patch) | |
tree | ff33bbb5cdb02d5591b4d1c345d9de4f55eccbc9 | |
parent | 0f8ec3036f44b02aa03795ede3052a790134a90d (diff) |
tdf#89505: replace tab character with space in table of contents
the ToxWhitespaceStripper now replaces also tab characters so that
they don't break the formatting
Change-Id: If66aaddcbc0f8c65461f53f07ca7031f8f1d11b4
Reviewed-on: https://gerrit.libreoffice.org/22271
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Oliver Specht <oliver.specht@cib.de>
-rw-r--r-- | sw/source/core/tox/ToxWhitespaceStripper.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/tox/ToxWhitespaceStripper.cxx b/sw/source/core/tox/ToxWhitespaceStripper.cxx index 4918a73cff08..c38079ce1731 100644 --- a/sw/source/core/tox/ToxWhitespaceStripper.cxx +++ b/sw/source/core/tox/ToxWhitespaceStripper.cxx @@ -24,7 +24,7 @@ ToxWhitespaceStripper::ToxWhitespaceStripper(const OUString& inputString) for (sal_Int32 pos = 0; pos < inputString.getLength(); ++pos) { sal_Unicode cur = inputString[pos]; - if (cur == ' ' || cur == '\n') { + if (cur == ' ' || cur == '\n' || cur == '\t') { // merge consecutive whitespaces (and translate them to spaces) if (!lastCharacterWasWhitespace) { buffer.append(' '); |