mirror of
https://github.com/bitcoin/bips.git
synced 2025-03-18 05:42:12 +01:00
scripts/buildtable: Check for extraneous spaces after header name
This commit is contained in:
parent
2a9e9503cd
commit
95dfd21ea2
@ -107,6 +107,7 @@ while (++$bipnum <= $topbip) {
|
||||
$field = $1;
|
||||
$val = $2;
|
||||
die "Duplicate $field field in $fn" if exists $found{$field};
|
||||
die "Too many spaces in $fn" if $val =~ /^\s/;
|
||||
} elsif (m[^ ( +)(.*\S)$]) {
|
||||
die "Continuation of non-field in $fn" unless defined $field;
|
||||
die "Too many spaces in $fn" if length $1 != 2 + length $field;
|
||||
|
Loading…
x
Reference in New Issue
Block a user