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>
This commit is contained in:
Abhilash
2016-10-16 13:05:46 +05:30
committed by jan iversen
parent 8ae33b1652
commit 250252d02b

View File

@@ -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: