Kaydet (Commit) 250252d0 authored tarafından Abhilash's avatar Abhilash Kaydeden (comit) jan iversen

tdf#44282 fix missing space for numbered lists in TOC

Change-Id: I885ec27b46f2c0966e8ed38e5ca8eb03822190c7
Reviewed-on: https://gerrit.libreoffice.org/29913Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarjan iversen <jani@documentfoundation.org>
üst 8ae33b16
...@@ -215,7 +215,10 @@ ToxTextGenerator::GenerateText(SwDoc* pDoc, const std::vector<SwTOXSortTabBase*> ...@@ -215,7 +215,10 @@ ToxTextGenerator::GenerateText(SwDoc* pDoc, const std::vector<SwTOXSortTabBase*>
} }
case TOKEN_TEXT: 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; break;
case TOKEN_PAGE_NUMS: case TOKEN_PAGE_NUMS:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment