diff options
author | Abhilash <abhilash300singh@gmail.com> | 2016-10-16 13:05:46 +0530 |
---|---|---|
committer | jan iversen <jani@documentfoundation.org> | 2016-10-25 07:20:41 +0000 |
commit | 250252d02bac88877845a4bc27e3f1837f1312ba (patch) | |
tree | e1413d56e842bec207c559cdfd6da2b40d9a8610 /sw | |
parent | 8ae33b1652cb1e654c426350169d3bb9fa031a4f (diff) |
tdf#44282 fix missing space for numbered lists in TOC
Change-Id: I885ec27b46f2c0966e8ed38e5ca8eb03822190c7
Reviewed-on: https://gerrit.libreoffice.org/29913
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: jan iversen <jani@documentfoundation.org>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/tox/ToxTextGenerator.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sw/source/core/tox/ToxTextGenerator.cxx b/sw/source/core/tox/ToxTextGenerator.cxx index 5c868d3a3321..16443387aed6 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: |