From fb2dfe1477134af514ea6d7dc6c4c88da0983edb Mon Sep 17 00:00:00 2001 From: acli Date: Mon, 24 Jan 2005 07:13:54 +0000 Subject: [PATCH] Reverting the patch --- misc/translator/TmplTokenizer.pm | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/misc/translator/TmplTokenizer.pm b/misc/translator/TmplTokenizer.pm index 4637e13047..30d011dfb3 100644 --- a/misc/translator/TmplTokenizer.pm +++ b/misc/translator/TmplTokenizer.pm @@ -341,15 +341,14 @@ sub identify_js_translatables (@) { } elsif ($state == STATE_UNDERSCORE) { $state = $input[$i] eq parenleft ? STATE_PARENLEFT : 0; } elsif ($state == STATE_PARENLEFT) { - if ($input[$i] =~ /^(['"])\s*(.*)\1$/s) { + if ($input[$i] =~ /^(['"])(.*)\1$/s) { ($state, $j, $q, $s) = (STATE_STRING_LITERAL, $#output, $1, $2); } else { $state = 0; } } elsif ($state == STATE_STRING_LITERAL) { if ($input[$i] eq parenright) { - my $candidate = $output[$j]->[1]; - $output[$j] = [1, $candidate, $q, $s]; + $output[$j] = [1, $output[$j]->[1], $q, $s]; } $state = 0; } else { -- 2.39.5