From: Jo-Philipp Wich Date: Sat, 5 Nov 2011 18:35:54 +0000 (+0000) Subject: build: i18n-scan.pl: cope with strings that contain escaped newlines, spotted in... X-Git-Tag: 0.11.0~1401 X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=5e86b77294fd1c64b4f56407d156737d7a147e37;p=project%2Fluci.git build: i18n-scan.pl: cope with strings that contain escaped newlines, spotted in luci-pbx --- diff --git a/build/i18n-scan.pl b/build/i18n-scan.pl index cee07fdfe1..8807384027 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]*\)$//;