mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-22 09:59:06 +01:00
LSlang: fix handling backslash in export POT file
This commit is contained in:
parent
1c900320db
commit
b3cd453918
1 changed files with 2 additions and 2 deletions
|
@ -822,8 +822,8 @@ function _cli_output_php($fd) {
|
||||||
* @return string The cleaned string
|
* @return string The cleaned string
|
||||||
*/
|
*/
|
||||||
function _cli_clean_for_pot_file($val) {
|
function _cli_clean_for_pot_file($val) {
|
||||||
$val = str_replace('"', '\\"', $val);
|
$val = preg_replace('/([^\\\\])"/', '$1\"', $val);
|
||||||
return str_replace("\n", "\\n", $val);
|
return str_replace("\n", '\n', $val);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue