From 83df957419b317baf06ed958250cb5244daabad7 Mon Sep 17 00:00:00 2001 From: "C. 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