summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--l10ntools/source/gConvPo.cxx5
-rw-r--r--l10ntools/source/gConvTree.cxx2
2 files changed, 4 insertions, 3 deletions
diff --git a/l10ntools/source/gConvPo.cxx b/l10ntools/source/gConvPo.cxx
index 431b58ee8685..40be9f9e5373 100644
--- a/l10ntools/source/gConvPo.cxx
+++ b/l10ntools/source/gConvPo.cxx
@@ -232,8 +232,9 @@ void convert_po::save(const string& sFileName,
<< "\"" << sENUStext.substr(oldPos, newPos - oldPos);
oldPos = newPos;
}
- outFile << "\"" << endl
- << "\"" << sENUStext.substr(oldPos) << "\"" << endl
+ if (oldPos)
+ outFile << "\"" << endl << "\"";
+ outFile << sENUStext.substr(oldPos) << "\"" << endl
<< "msgstr \"" << sText << "\"" << endl;
}
diff --git a/l10ntools/source/gConvTree.cxx b/l10ntools/source/gConvTree.cxx
index f13d2e7a5aef..5605e1e6a25a 100644
--- a/l10ntools/source/gConvTree.cxx
+++ b/l10ntools/source/gConvTree.cxx
@@ -105,7 +105,7 @@ void convert_tree::setString(char *yytext)
case STATE_VAL_TITLE:
string sText = copySourceSpecial(yytext, 1);
sText.erase(sText.size()-1);
- mcMemory.setSourceKey(miLineNo, msSourceFile, msId, sText, "", "", "", mbMergeMode);
+ mcMemory.setSourceKey(miLineNo, msSourceFile, msId, sText, "", "help_section", "", mbMergeMode);
break;
}
meStateVal = STATE_VAL_NONE;