[Libreoffice-commits] core.git: sw/source
Xisco Fauli
anistenis at gmail.com
Wed Feb 15 11:34:17 UTC 2017
sw/source/core/tox/ToxTextGenerator.cxx | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
New commits:
commit dc8ebf205c3231ffc4d6737b53cee396c2ac0bfd
Author: Xisco Fauli <anistenis at gmail.com>
Date: Wed Feb 15 11:06:00 2017 +0100
tdf#104315: Revert "tdf#44282 fix missing space...
... for numbered lists in TOC"
This commit is causing lot of regressions in TOC.
Besides, as the comment says, it's an ugly hack,
so I'd prefer to revert it and find a better solution
This reverts commit 250252d02bac88877845a4bc27e3f1837f1312ba.
Change-Id: I9f57d1cb0f7237372030c12651ba92fbe5a60945
Reviewed-on: https://gerrit.libreoffice.org/34293
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Miklos Vajna <vmiklos at collabora.co.uk>
diff --git a/sw/source/core/tox/ToxTextGenerator.cxx b/sw/source/core/tox/ToxTextGenerator.cxx
index 9d6a887..4eaaf8c3 100644
--- a/sw/source/core/tox/ToxTextGenerator.cxx
+++ b/sw/source/core/tox/ToxTextGenerator.cxx
@@ -215,10 +215,7 @@ ToxTextGenerator::GenerateText(SwDoc* pDoc, const std::vector<SwTOXSortTabBase*>
}
case TOKEN_TEXT:
- {
- if(rText.getLength() > 0) rText = rText.copy(0, rText.getLength() - 1); //Ugly hack to remove default spacing when user specifies <E#>
- rText += aToken.sText;
- }
+ rText += aToken.sText;
break;
case TOKEN_PAGE_NUMS:
More information about the Libreoffice-commits
mailing list