From ce95e39f8e952159844e9dc04a1df402bb103634 Mon Sep 17 00:00:00 2001 From: Abhilash Singh Date: Fri, 22 Jul 2016 11:48:45 +0530 Subject: [PATCH] tdf#44282 fix missing space for numbered lists in TOC Change-Id: I6baa6c775ac6142e4ba4197ce4d164628ef0ba1e Reviewed-on: https://gerrit.libreoffice.org/27423 Tested-by: Jenkins Reviewed-by: jan iversen --- sw/source/core/tox/ToxTextGenerator.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sw/source/core/tox/ToxTextGenerator.cxx b/sw/source/core/tox/ToxTextGenerator.cxx index cc181de41650..5c0514fec329 100644 --- a/sw/source/core/tox/ToxTextGenerator.cxx +++ b/sw/source/core/tox/ToxTextGenerator.cxx @@ -87,6 +87,10 @@ ToxTextGenerator::GetNumStringOfFirstNode( const SwTOXSortTabBase& rBase, bool b sRet = pNd->GetNumString(bUsePrefix, nLevel); } + if(sRet != "") { + sRet += " ";// Makes sure spacing is done only when there is outline numbering + } + return sRet; }