summaryrefslogtreecommitdiff
path: root/helpcompiler
diff options
context:
space:
mode:
authorAndras Timar <andras.timar@collabora.com>2015-01-15 08:27:18 +0100
committerAndras Timar <andras.timar@collabora.com>2015-01-22 17:24:33 +0000
commit186508874e2e4e3b478a4b306cdbb5c50c562313 (patch)
tree335f1dff29c78a915449af2c9cbde9c8c3c91082 /helpcompiler
parent15faeb4f9f111f7ea8d04fd64b3d065971cd4570 (diff)
replace '\n' to space in extended help text
Change-Id: Ida354ee41b4158716ab39a92f009fa7c9a2ce21f Reviewed-on: https://gerrit.libreoffice.org/13919 Tested-by: Andras Timar <andras.timar@collabora.com> Reviewed-by: Andras Timar <andras.timar@collabora.com>
Diffstat (limited to 'helpcompiler')
-rw-r--r--helpcompiler/source/HelpCompiler.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/helpcompiler/source/HelpCompiler.cxx b/helpcompiler/source/HelpCompiler.cxx
index 602acce19e97..80c1bc6504dd 100644
--- a/helpcompiler/source/HelpCompiler.cxx
+++ b/helpcompiler/source/HelpCompiler.cxx
@@ -399,6 +399,7 @@ void myparser::traverse( xmlNodePtr parentNode )
else if (!strcmp(reinterpret_cast<const char*>(test->name), "ahelp"))
{
std::string text = dump(test);
+ std::replace(text.begin(), text.end(), '\n', ' ');
trim(text);
std::string name;