aboutsummaryrefslogtreecommitdiffstats
path: root/lv2specgen/lv2specgen.py
diff options
context:
space:
mode:
Diffstat (limited to 'lv2specgen/lv2specgen.py')
-rwxr-xr-xlv2specgen/lv2specgen.py12
1 files changed, 7 insertions, 5 deletions
diff --git a/lv2specgen/lv2specgen.py b/lv2specgen/lv2specgen.py
index 0c82027..edef5ea 100755
--- a/lv2specgen/lv2specgen.py
+++ b/lv2specgen/lv2specgen.py
@@ -752,22 +752,24 @@ def buildIndex(m, classlist, proplist, instalist=None):
if (len(proplist) > 0):
azlist += "<dt>Properties</dt><dd>"
proplist.sort()
+ props = []
for p in proplist:
name = termName(m, p)
if name.startswith(spec_ns_str):
name = name.split(spec_ns_str[-1])[1]
- azlist = """%s <a href="#%s">%s</a>, """ % (azlist, name, name)
- azlist = """%s</dd>\n""" % azlist
+ props += ['<a href="#%s">%s</a>' % (name, name)]
+ azlist += ', '.join(props) + '</dd>\n'
if (instalist != None and len(instalist) > 0):
azlist += "<dt>Instances</dt><dd>"
+ instas = []
for i in instalist:
p = getShortName(i)
anchor = getAnchor(i)
- azlist = """%s <a href="#%s">%s</a>, """ % (azlist, anchor, p)
- azlist = """%s</dd>\n""" % azlist
+ instas += ['<a href="#%s">%s</a>' % (anchor, p)]
+ azlist += ', '.join(instas) + '</dd>\n'
- azlist = """%s\n</dl>""" % azlist
+ azlist += '\n</dl>'
return azlist