diff options
author | David Robillard <d@drobilla.net> | 2022-07-17 14:40:21 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-07-17 18:14:02 -0400 |
commit | 131eb5c530b9f0fffa54b0ba489dc2e0ff56b2ea (patch) | |
tree | 3adbc0fe69799280a02e7f2c6bb454f86a050f4c /lv2specgen | |
parent | 666fc60b6e332cee4389cae0f06b50cb764edd1c (diff) | |
download | lv2-131eb5c530b9f0fffa54b0ba489dc2e0ff56b2ea.tar.xz |
lv2specgen: Fix invalid output for terms about the spec itself
Diffstat (limited to 'lv2specgen')
-rwxr-xr-x | lv2specgen/lv2specgen.py | 6 |
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 |