Kaydet (Commit) f21a2374 authored tarafından Zolnai Tamás's avatar Zolnai Tamás

Fix some escaping bug in l10ntools

1. A typo in export.cxx makes not working replacing
2. EscapeAll() ignored single backlash characters

Change-Id: I1a5309778acdd601391f643ebf3c66d04a6601d4
üst dc54d783
......@@ -1201,7 +1201,7 @@ void Export::ConvertMergeContent( OString &rText )
sal_Bool bNoClose = !rText.endsWith("\\\"");
rText = rText.replaceAll("\\\"'","\'"); // Temporary: until PO files contain escaped single quotes
rText = rText.replaceAll("\\\'","\'"); // Temporary: until PO files contain escaped single quotes
// (Maybe next PO update solve this)
rText =
helper::escapeAll(
......
......@@ -46,6 +46,10 @@ OString unEscapeAll(
sReturn.append(rUnEscaped[nEscapedOne/2]);
++nIndex;
}
else
{
sReturn.append(rText[nIndex]);
}
}
else
sReturn.append(rText[nIndex]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment