[Libreoffice-commits] core.git: sw/source
Abhilash
abhilash300singh at gmail.com
Tue Oct 25 07:21:01 UTC 2016
sw/source/core/tox/ToxTextGenerator.cxx | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
New commits:
commit 250252d02bac88877845a4bc27e3f1837f1312ba
Author: Abhilash <abhilash300singh at gmail.com>
Date: Sun Oct 16 13:05:46 2016 +0530
tdf#44282 fix missing space for numbered lists in TOC
Change-Id: I885ec27b46f2c0966e8ed38e5ca8eb03822190c7
Reviewed-on: https://gerrit.libreoffice.org/29913
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: jan iversen <jani at documentfoundation.org>
diff --git a/sw/source/core/tox/ToxTextGenerator.cxx b/sw/source/core/tox/ToxTextGenerator.cxx
index 5c868d3..1644338 100644
--- a/sw/source/core/tox/ToxTextGenerator.cxx
+++ b/sw/source/core/tox/ToxTextGenerator.cxx
@@ -215,7 +215,10 @@ ToxTextGenerator::GenerateText(SwDoc* pDoc, const std::vector<SwTOXSortTabBase*>
}
case TOKEN_TEXT:
- rText += aToken.sText;
+ {
+ if(rText.getLength() > 0) rText = rText.copy(0, rText.getLength() - 1); //Ugly hack to remove default spacing when user specifies <E#>
+ rText += aToken.sText;
+ }
break;
case TOKEN_PAGE_NUMS:
More information about the Libreoffice-commits
mailing list