aboutsummaryrefslogtreecommitdiffstats
path: root/lv2specgen
diff options
context:
space:
mode:
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