summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorOliver Specht <oliver.specht@cib.de>2016-02-10 16:57:14 +0100
committerAndras Timar <andras.timar@collabora.com>2016-02-22 08:58:13 +0100
commit0338f652fb81f9eb6e6f4b42365b60e8fe041389 (patch)
treed6066904bc56ba207cb1da988a565871532432bb /sw
parent70b0751d51492acf83f66060241d2352e52e715b (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> (cherry picked from commit eeb7c6877d47bfb0a4871734a397be96eac46663)
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/tox/ToxWhitespaceStripper.cxx2
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(' ');