diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2011-11-05 18:35:54 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2011-11-05 18:35:54 +0000 |
commit | 5e86b77294fd1c64b4f56407d156737d7a147e37 (patch) | |
tree | cb7f279bbf5e5798236733860ebfe75653e052ca /build | |
parent | 5cd67479c341475f3dde4e13c527aae387abb679 (diff) |
build: i18n-scan.pl: cope with strings that contain escaped newlines, spotted in luci-pbx
Diffstat (limited to 'build')
-rwxr-xr-x | build/i18n-scan.pl | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/build/i18n-scan.pl b/build/i18n-scan.pl index cee07fdfe..880738402 100755 --- a/build/i18n-scan.pl +++ b/build/i18n-scan.pl @@ -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]*\)$//; |