From 131eb5c530b9f0fffa54b0ba489dc2e0ff56b2ea Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 17 Jul 2022 14:40:21 -0400 Subject: lv2specgen: Fix invalid output for terms about the spec itself --- lv2specgen/lv2specgen.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lv2specgen') 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 += '
' % (t, term) + if t: + doc += '
' % (t, term) + else: + doc += '
' % term + doc += '

%s

' % (getAnchor(term), curie) doc += '%s' % category -- cgit v1.2.1