mirror of
https://github.com/benjaminion/upgrading-ethereum-book.git
synced 2026-01-10 06:57:58 -05:00
Handle multiple footnote references per line
This commit is contained in:
@@ -87,12 +87,12 @@ while(<$fh>) {
|
||||
/$newPagePath/ and $pagePath = $2;
|
||||
|
||||
# Footnote references
|
||||
while (/^.+\[\^(.+?)\]/g) {
|
||||
while (/.\[\^(.+?)\]/g) {
|
||||
my $fn = $1;
|
||||
if (exists($fns{$fn})) {
|
||||
delete $fns{$fn};
|
||||
} else {
|
||||
print "Missing footnote: $fn , line $.";
|
||||
print "Missing footnote: $fn, line $.";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user