From a085d55c5b45ebfa126511aaec0aa307b0893e53 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 19 Feb 2012 02:46:57 +0000 Subject: Fix dangling commas in Properties and Instances index. --- lv2specgen/lv2specgen.py | 12 +++++++----- 1 file 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 += "
Properties
" 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 %s, """ % (azlist, name, name) - azlist = """%s
\n""" % azlist + props += ['%s' % (name, name)] + azlist += ', '.join(props) + '\n' if (instalist != None and len(instalist) > 0): azlist += "
Instances
" + instas = [] for i in instalist: p = getShortName(i) anchor = getAnchor(i) - azlist = """%s %s, """ % (azlist, anchor, p) - azlist = """%s
\n""" % azlist + instas += ['%s' % (anchor, p)] + azlist += ', '.join(instas) + '\n' - azlist = """%s\n""" % azlist + azlist += '\n' return azlist -- cgit v1.2.1