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
This commit is contained in:
parent
dc54d78398
commit
f21a2374dc
2 changed files with 5 additions and 1 deletions
|
@ -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]);
|
||||
|
|
Loading…
Reference in a new issue