aboutsummaryrefslogtreecommitdiffstats
path: root/lv2specgen
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-07-17 14:40:21 -0400
committerDavid Robillard <d@drobilla.net>2022-07-17 18:14:02 -0400
commit131eb5c530b9f0fffa54b0ba489dc2e0ff56b2ea (patch)
tree3adbc0fe69799280a02e7f2c6bb454f86a050f4c /lv2specgen
parent666fc60b6e332cee4389cae0f06b50cb764edd1c (diff)
downloadlv2-131eb5c530b9f0fffa54b0ba489dc2e0ff56b2ea.tar.xz
lv2specgen: Fix invalid output for terms about the spec itself
Diffstat (limited to 'lv2specgen')
-rwxr-xr-xlv2specgen/lv2specgen.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/lv2specgen/lv2specgen.py b/lv2specgen/lv2specgen.py
index a37ad32..29f6d91 100755
--- a/lv2specgen/lv2specgen.py
+++ b/lv2specgen/lv2specgen.py
@@ -765,7 +765,11 @@ def docTerms(category, list, m, classlist, proplist, instalist):
t = termName(m, term)
curie = term.split(spec_ns_str[-1])[1]
- doc += '<div class="specterm" id="%s" about="%s">' % (t, term)
+ if t:
+ doc += '<div class="specterm" id="%s" about="%s">' % (t, term)
+ else:
+ doc += '<div class="specterm" about="%s">' % term
+
doc += '<h3><a href="#%s">%s</a></h3>' % (getAnchor(term), curie)
doc += '<span class="spectermtype">%s</span>' % category