better handling of trailing spaces in magic unit attributes

This commit is contained in:
Yann Dirson 2004-10-03 21:38:48 +00:00
parent 9bf0fccd53
commit 397b97861e

View file

@ -57,7 +57,7 @@ foreach my $file (@ARGV) {
# part of multi-line
$str .= $_;
} elsif (m/(\S+)\s*=\s*(.*)$/) {
} elsif (m/(\S+)\s*=\s*(.*?)\s*$/) {
# single-line non-quoted string
die "nested string in $file" if defined $str;