From 1c9899ed0e3b652478c3a56d8a6832e11b9dc949 Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Sun, 20 Dec 2020 22:30:44 -0500 Subject: Emit tags for section headings without trailing dots Some RFCs reference other sections like "(Section 1.2)", where the section header says "1.2.". --- rfc/rfctags.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/rfc/rfctags.pl b/rfc/rfctags.pl index 5833e17a..01324a0d 100644 --- a/rfc/rfctags.pl +++ b/rfc/rfctags.pl @@ -15,6 +15,7 @@ for my $rfc (<*.txt.gz>) { if (/^([\d.]+|[A-Z][.])\s+([^\t]+)?/) { print $1, $rfc, $.; print $2, $rfc, $. if $2; + print $1, $rfc, $. if $1 =~ /^([\d.]+)[.]$/; } # References if (/^\s*(\[[\w-]+\])\s{2,}/) { -- cgit 1.4.1