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:
@@ -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:
|
||||
|
Reference in New Issue
Block a user