[Libreoffice-commits] core.git: helpcompiler/source

Andras Timar andras.timar at collabora.com
Thu Jan 22 09:25:07 PST 2015


 helpcompiler/source/HelpCompiler.cxx |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit 186508874e2e4e3b478a4b306cdbb5c50c562313
Author: Andras Timar <andras.timar at collabora.com>
Date:   Thu Jan 15 08:27:18 2015 +0100

    replace '\n' to space in extended help text
    
    Change-Id: Ida354ee41b4158716ab39a92f009fa7c9a2ce21f
    Reviewed-on: https://gerrit.libreoffice.org/13919
    Tested-by: Andras Timar <andras.timar at collabora.com>
    Reviewed-by: Andras Timar <andras.timar at collabora.com>

diff --git a/helpcompiler/source/HelpCompiler.cxx b/helpcompiler/source/HelpCompiler.cxx
index 602acce..80c1bc6 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;
 


More information about the Libreoffice-commits mailing list