sw/source/core/tox/ToxWhitespaceStripper.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit a6c5dfc9470c261f11efa35bcad98ef7ac632aaa Author: Oliver Specht <oliver.spe...@cib.de> Date: Wed Feb 10 16:57:14 2016 +0100 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 <c...@libreoffice.org> Reviewed-by: Oliver Specht <oliver.spe...@cib.de> (cherry picked from commit 5152c43109c9a35f30fc9b0f478c1fbaf01a1143) Reviewed-on: https://gerrit.libreoffice.org/22285 Reviewed-by: Miklos Vajna <vmik...@collabora.co.uk> diff --git a/sw/source/core/tox/ToxWhitespaceStripper.cxx b/sw/source/core/tox/ToxWhitespaceStripper.cxx index 4918a73..c38079c 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(' '); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits