summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2003-01-31 09:04:34 +0000
committerDaniel Stenberg <daniel@haxx.se>2003-01-31 09:04:34 +0000
commit8f72d9eeb1b75f81f75762395007c05fbd73cdb6 (patch)
tree37704a417448a8569a731de4d83260dab5df08cf /tools
parent816bc8c6b1a92ff005a95772590510166df1fe5a (diff)
downloadrockbox-8f72d9eeb1b75f81f75762395007c05fbd73cdb6.tar.gz
rockbox-8f72d9eeb1b75f81f75762395007c05fbd73cdb6.tar.bz2
rockbox-8f72d9eeb1b75f81f75762395007c05fbd73cdb6.zip
make it deal with traling tabs as well as spaces
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3198 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'tools')
-rwxr-xr-xtools/genlang4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/genlang b/tools/genlang
index 39f1696e8c..de9dd43920 100755
--- a/tools/genlang
+++ b/tools/genlang
@@ -61,8 +61,8 @@ while(<LANG>) {
$set{$var} = $value;
- if( (($var eq "new") && $value && ($value !~ /^\"(.*)\" *$/)) ||
- (($var eq "eng") && ($value !~ /^\"(.*)\" *$/)) ) {
+ if( (($var eq "new") && $value && ($value !~ /^\"(.*)\"\W*$/)) ||
+ (($var eq "eng") && ($value !~ /^\"(.*)\"\W*$/)) ) {
print "$input:$line:missing quotes for ".$set{'id'}."\n";
$errors++;
next;