diff options
author | David Robillard <d@drobilla.net> | 2011-10-20 20:21:53 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-10-20 20:21:53 +0000 |
commit | 9b4d2917ce2e61ea3854670e80730dfed42c1e88 (patch) | |
tree | d886dc6e6136577c5cde8f0f5b5aad84d2648971 /lv2specgen/lv2specgen.py | |
parent | f02b28e44f0b275b8d43268715618302aad02378 (diff) | |
download | lv2-9b4d2917ce2e61ea3854670e80730dfed42c1e88.tar.xz |
Fix invalid markup in output.
Diffstat (limited to 'lv2specgen/lv2specgen.py')
-rwxr-xr-x | lv2specgen/lv2specgen.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lv2specgen/lv2specgen.py b/lv2specgen/lv2specgen.py index 97d50db..3b2ede3 100755 --- a/lv2specgen/lv2specgen.py +++ b/lv2specgen/lv2specgen.py @@ -590,7 +590,7 @@ def buildIndex(m, classlist, proplist, instalist=None): return tree azlist += class_tree(c) azlist += '</li>' - azlist = """%s</dd></ul>\n""" % azlist + azlist += '</ul></dd>\n' if (len(proplist) > 0): azlist += "<dt>Properties</dt><dd>" @@ -768,7 +768,10 @@ def getInstances(model, classes, properties): if inst not in instances and str(inst) != spec_url: instances.append(inst) for i in model.find_statements(RDF.Statement(None, rdf.type, None)): - if not i.subject.is_resource() or i.subject in classes or i.subject in instances: + if ((not i.subject.is_resource()) + or (i.subject in classes) + or (i.subject in instances) + or (i.subject in properties)): continue full_uri = str(i.subject.uri) if (full_uri.startswith(spec_ns_str)): |