diff options
author | Oliver Specht <oliver.specht@cib.de> | 2016-02-10 16:57:14 +0100 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2016-02-16 08:23:23 +0000 |
commit | eeb7c6877d47bfb0a4871734a397be96eac46663 (patch) | |
tree | a05501d0e9766d829bb99e9f4723cabd135485a6 | |
parent | 938ddc33ed55579ea40d25bd9cd5704d31b0034e (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>
(cherry picked from commit 5152c43109c9a35f30fc9b0f478c1fbaf01a1143)
Reviewed-on: https://gerrit.libreoffice.org/22284
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Tested-by: Thorsten Behrens <Thorsten.Behrens@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(' '); |