summary refs log tree commit diff
path: root/rfc
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-12-20 22:30:44 -0500
committerJune McEnroe <june@causal.agency>2020-12-20 22:30:44 -0500
commit83df957419b317baf06ed958250cb5244daabad7 (patch)
treedb4f1df2953ea5bfa3cebc9eef3275bcda51b38e /rfc
parentDepend on rfc-index.txt.gz in Makefile (diff)
downloadsrc-83df957419b317baf06ed958250cb5244daabad7.tar.gz
src-83df957419b317baf06ed958250cb5244daabad7.zip
Emit tags for section headings without trailing dots
Some RFCs reference other sections like "(Section 1.2)", where the
section header says "1.2.".
Diffstat (limited to 'rfc')
-rw-r--r--rfc/rfctags.pl1
1 files changed, 1 insertions, 0 deletions
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,}/) {