From bed495ed3e369aec3e479b5bd7397a47360c9ae7 Mon Sep 17 00:00:00 2001 From: acli Date: Thu, 12 Feb 2004 18:25:43 +0000 Subject: [PATCH] Minor wording rewrite in warning --- misc/translator/text-extract2.pl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/misc/translator/text-extract2.pl b/misc/translator/text-extract2.pl index 26fad4cb60..587ee59e5e 100755 --- a/misc/translator/text-extract2.pl +++ b/misc/translator/text-extract2.pl @@ -71,14 +71,13 @@ sub extract_attributes ($;$) { $i += 1; $attr{+lc($key)} = [$key, $val, $val_orig, $i]; $s = $rest; - warn "Warning: Attribute unquoted but needs quoting" + warn "Warning: Attribute should be quoted" . (defined $lc? " in line $lc": '') . ": $val_orig\n" if $val =~ /[^-\.A-Za-z0-9]/s && $val_orig !~ /^['"]/; } if ($s =~ /\S/s) { # should never happen warn "Warning: Strange attribute syntax" . (defined $lc? " in line $lc": '') . ": $s\n"; - } else { } return \%attr; } -- 2.20.1