aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2014-07-31 20:59:35 +0000
committerDavid Robillard <d@drobilla.net>2014-07-31 20:59:35 +0000
commit787c08a24c8eeb78681f46e88f590b70cff29b58 (patch)
treec1031b0141564fe38b0dc2786a37d019faf08ab9
parent1c67d8123580b5cf70b5530277ad8320e97174cd (diff)
downloadlv2-787c08a24c8eeb78681f46e88f590b70cff29b58.tar.xz
Fix change history on specification index page.
-rwxr-xr-xlv2specgen/lv2specgen.py18
1 files changed, 10 insertions, 8 deletions
diff --git a/lv2specgen/lv2specgen.py b/lv2specgen/lv2specgen.py
index 3b8e5d5..5ac0e1f 100755
--- a/lv2specgen/lv2specgen.py
+++ b/lv2specgen/lv2specgen.py
@@ -918,7 +918,8 @@ def releaseChangeset(m, release, prefix=''):
if changeset is None:
return ''
- entry = '<dd><ul>'
+ entry = ''
+ #entry = '<dd><ul>\n'
for i in findStatements(m, getObject(changeset), dcs.item, None):
item = getObject(i)
label = findOne(m, item, rdfs.label, None)
@@ -930,11 +931,12 @@ def releaseChangeset(m, release, prefix=''):
if prefix:
text = prefix + ': ' + text
- entry += '<li>%s</li>' % text
+ entry += '<li>%s</li>\n' % text
- entry += '</ul></dd>\n'
+ #entry += '</ul></dd>\n'
return entry
+
def specHistoryEntries(m, subject, entries={}):
for r in findStatements(m, subject, doap.release, None):
release = getObject(r)
@@ -955,11 +957,11 @@ def specHistoryEntries(m, subject, entries={}):
#print("warning: doap:release has no doap:file-release")
if created:
- entry += ' (%s)</dt>' % getLiteralString(getObject(created))
+ entry += ' (%s)</dt>\n' % getLiteralString(getObject(created))
else:
entry += ' (<span class="warning">EXPERIMENTAL</span>)</dt>'
- entry += releaseChangeset(m, release)
+ entry += '<dd><ul>\n%s' % releaseChangeset(m, release)
if dist is not None:
entries[getObject(dist)] = entry
@@ -969,10 +971,10 @@ def specHistoryEntries(m, subject, entries={}):
def specHistoryMarkup(entries):
if len(entries) > 0:
- history = '<dl>'
+ history = '<dl>\n'
for e in sorted(entries.keys(), reverse=True):
- history += entries[e]
- history += '</dl>'
+ history += entries[e] + '</ul></dd>'
+ history += '</dl>\n'
return history
else:
return ''