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',
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])))