# link page
if v.startswith("[[") and v.endswith("]]"):
link = v[2:-2]
- if '|' in link:
- link, ref = link.split("|")
- return Link(['', [], []],
- [Str(link)],
- [ref, ''])
out.write(" link %s\n" % link)
- lookups = {'sv': 'Scalable Vectors for the Power ISA',
+ lookups = {'sv': 'Scalable Vectors for Power ISA',
+ 'SV|sv': 'Scalable Vectors for Power ISA',
'sv/overview': 'Overview Chapter',
'sv/compliancy_levels': 'Compliancy Levels',
'sv/svp64': 'SVP64 Chapter',
return Link(['', [], []],
[Str(lookups[link])],
['#%s' % link, ''])
+ if '|' in link:
+ link, ref = link.split("|")
+ return Link(['', [], []],
+ [Str(link)],
+ [ref, ''])
if k == 'Link':
out.write(" link type %s\n" % \
(type(v[1][0])))