build: i18n-scan.pl: cope with strings that contain escaped newlines, spotted in luci-pbx
This commit is contained in:
parent
5cd67479c3
commit
5e86b77294
1 changed files with 1 additions and 0 deletions
|
@ -51,6 +51,7 @@ if( open F, "find @ARGV -type f '(' -name '*.htm' -o -name '*.lua' ')' |" )
|
|||
{
|
||||
( my $code, $text ) = extract_bracketed($text, q{('")});
|
||||
|
||||
$code =~ s/\\\n/ /g;
|
||||
$code =~ s/^\([\n\s]*//;
|
||||
$code =~ s/[\n\s]*\)$//;
|
||||
|
||||
|
|
Loading…
Reference in a new issue