From 276f9ec755524388af74b6fb8b3bf4e847031a50 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Tue, 11 Apr 2023 17:18:34 +0100 Subject: [PATCH] add link-creation for RFCs --- openpower/pandoc_img.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/openpower/pandoc_img.py b/openpower/pandoc_img.py index d60fac533..f665d5dab 100755 --- a/openpower/pandoc_img.py +++ b/openpower/pandoc_img.py @@ -102,6 +102,11 @@ def inlinenotes(k, v, f, meta): 'openpower/isa/branch': 'Branch pseudocode', 'openpower/transcendentals': 'Transcendentals', } + if link.startswith("ls") and link[2].isdigit(): + out.write(" found RFC %s\n" % link) + return [Link(['', [], []], + [Str("{RFC "+link+"}")], + ['#%s' % link, '']), Str(v[find_brack+2:])] if link in lookups: out.write(" found %s\n" % lookups[link]) return [Link(['', [], []], -- 2.30.2