From cac01a91101242eb36658e66e791e1994da7daff Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Thu, 30 Jun 2022 19:54:13 +0100 Subject: [PATCH] whoops cut in wrong place --- openpower/pandoc_img.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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]))) -- 2.30.2