Skip to content

Commit 95dfd21

Browse files
committed
scripts/buildtable: Check for extraneous spaces after header name
1 parent 2a9e950 commit 95dfd21

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

scripts/buildtable.pl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@
107107
$field = $1;
108108
$val = $2;
109109
die "Duplicate $field field in $fn" if exists $found{$field};
110+
die "Too many spaces in $fn" if $val =~ /^\s/;
110111
} elsif (m[^ ( +)(.*\S)$]) {
111112
die "Continuation of non-field in $fn" unless defined $field;
112113
die "Too many spaces in $fn" if length $1 != 2 + length $field;

0 commit comments

Comments
 (0)