aboutsummaryrefslogtreecommitdiffstats
path: root/lv2specgen
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-11-05 00:09:48 +0000
committerDavid Robillard <d@drobilla.net>2011-11-05 00:09:48 +0000
commitb439ac096d4b61bc5522ec29e5fb8260463e06a9 (patch)
treeaebe0d37cd991fc8a88bbe051a03c36bd4201b6a /lv2specgen
parent4deb1148e3e2a5008d2fb8b3d08e88bfe393cc01 (diff)
downloadlv2-b439ac096d4b61bc5522ec29e5fb8260463e06a9.tar.xz
Fix invalid markup.
Diffstat (limited to 'lv2specgen')
-rwxr-xr-xlv2specgen/lv2specgen.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/lv2specgen/lv2specgen.py b/lv2specgen/lv2specgen.py
index 822f539..d81e500 100755
--- a/lv2specgen/lv2specgen.py
+++ b/lv2specgen/lv2specgen.py
@@ -299,36 +299,37 @@ def rdfsPropertyInfo(term, m):
# Domain stuff
domains = findStatements(m, term, rdfs.domain, None)
domainsdoc = ""
+ first = True
for d in domains:
union = findOne(m, getObject(d), owl.unionOf, None)
if union:
uris = parseCollection(m, getObject(union))
- first = True
for uri in uris:
domainsdoc += getProperty(getTermLink(uri, term, rdfs.domain), first)
add(classdomains, uri, term)
- first = False
else:
if not isBlank(getObject(d)):
- domainsdoc += getProperty(getTermLink(getObject(d), term, rdfs.domain))
+ domainsdoc += getProperty(getTermLink(getObject(d), term, rdfs.domain), first)
+ first = False
if (len(domainsdoc) > 0):
doc += "<tr><th>Domain</th>%s" % domainsdoc
# Range stuff
ranges = findStatements(m, term, rdfs.range, None)
rangesdoc = ""
+ first = True
for r in ranges:
union = findOne(m, getObject(r), owl.unionOf, None)
if union:
uris = parseCollection(m, getObject(union))
- first = True
for uri in uris:
rangesdoc += getProperty(getTermLink(uri, term, rdfs.range), first)
add(classranges, uri, term)
first = False
else:
if not isBlank(getObject(r)):
- rangesdoc += getProperty(getTermLink(getObject(r), term, rdfs.range))
+ rangesdoc += getProperty(getTermLink(getObject(r), term, rdfs.range), first)
+ first = False
if (len(rangesdoc) > 0):
doc += "<tr><th>Range</th>%s" % rangesdoc