correctly handle the special case of final newlines in strings,
so wmlxgettext does the right thing
This commit is contained in:
parent
7ed54eca5e
commit
932f492915
1 changed files with 1 additions and 0 deletions
|
@ -78,6 +78,7 @@ sub raw2postring {
|
|||
my $str = shift;
|
||||
|
||||
$str =~ s/^(.*)$/"$1\\n"/mg;
|
||||
$str =~ s/\n$/\n"\\n"/mg;
|
||||
$str =~ s/\\n\"$/\"\n/g;
|
||||
|
||||
return $str;
|
||||
|
|
Loading…
Add table
Reference in a new issue