diff options
author | Zolnai Tamás <zolnaitamas2000@gmail.com> | 2013-05-26 08:30:22 +0200 |
---|---|---|
committer | Zolnai Tamás <zolnaitamas2000@gmail.com> | 2013-05-26 08:57:48 +0200 |
commit | 1cb50dc6ec75586975c2d4e528953fa8ca33e1f1 (patch) | |
tree | 6ae791faf34cf81ddba9c82105449fe2c46dc127 /l10ntools | |
parent | 5ccdfd28bf05703f2d4b3c0e2040dd6d500eb8d0 (diff) |
Escape quotes during stringex export
Change-Id: If53afd3743f44bcfffab33122657d14c0f4aba1e
Diffstat (limited to 'l10ntools')
-rw-r--r-- | l10ntools/source/stringmerge.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/l10ntools/source/stringmerge.cxx b/l10ntools/source/stringmerge.cxx index 34c978b45493..9e3fa7a270d3 100644 --- a/l10ntools/source/stringmerge.cxx +++ b/l10ntools/source/stringmerge.cxx @@ -71,7 +71,7 @@ void StringParser::Extract( const OString& rPOFile ) xmlChar* pID = xmlGetProp(pCurrent, (const xmlChar*)("name")); xmlChar* pText = xmlNodeGetContent(pCurrent); const OString sTemp = - helper::unEscapeAll(helper::xmlStrToOString( pText ),"\\n""\\t","\n""\t"); + helper::unEscapeAll(helper::xmlStrToOString( pText ),"\\n""\\t""\\\"""\\\'","\n""\t""\"""\'"); common::writePoEntry( "Stringex", aPOStream, m_pSource->name, "string", helper::xmlStrToOString( pID ), OString(), OString(), @@ -130,7 +130,7 @@ void StringParser::Merge( { xmlChar* pText = xmlNodeGetContent(pCurrent); const OString sOriginText = - helper::unEscapeAll(helper::xmlStrToOString( pText ),"\\n""\\t","\n""\t"); + helper::unEscapeAll(helper::xmlStrToOString( pText ),"\\n""\\t""\\\"""\\\'","\n""\t""\"""\'"); xmlFree( pText ); sNewText = MergeEntrys::GetQTZText(aResData, sOriginText); } |