From: Luke Kenneth Casson Leighton Date: Thu, 30 Jun 2022 18:54:13 +0000 (+0100) Subject: whoops cut in wrong place X-Git-Tag: opf_rfc_ls005_v1~1435 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cac01a91101242eb36658e66e791e1994da7daff;p=libreriscv.git whoops cut in wrong place --- diff --git a/openpower/pandoc_img.py b/openpower/pandoc_img.py index 458b11f45..ed107a426 100755 --- a/openpower/pandoc_img.py +++ b/openpower/pandoc_img.py @@ -51,7 +51,7 @@ def inlinenotes(k, v, f, meta): find_brack = v.find(']]') if find_brack == -1: return - link = v[2:find_brack-2] + link = v[2:find_brack] out.write(" link %s\n" % link) lookups = {'sv': 'Scalable Vectors for Power ISA', 'SV|sv': 'Scalable Vectors for Power ISA', @@ -77,12 +77,12 @@ def inlinenotes(k, v, f, meta): out.write(" found %s\n" % lookups[link]) return [Link(['', [], []], [Str(lookups[link])], - ['#%s' % link, '']), Str(v[find_brack:])] + ['#%s' % link, '']), Str(v[find_brack+2:])] if '|' in link: link, ref = link.split("|") return [Link(['', [], []], [Str(link)], - [ref, '']), Str(v[find_brack:])] + [ref, '']), Str(v[find_brack+2:])] if k == 'Link': out.write(" link type %s\n" % \ (type(v[1][0])))