aboutsummaryrefslogtreecommitdiffstats
path: root/lv2specgen
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2014-11-01 00:19:22 +0000
committerDavid Robillard <d@drobilla.net>2014-11-01 00:19:22 +0000
commitd711e04227b7a9c5d9ef486512bfa45d68778925 (patch)
tree624062931da63e8b35092e2eb91e4fb8bebe9724 /lv2specgen
parent118ec555a37ff2324dad2ea81b2b6bef3d0d2c20 (diff)
downloadlv2-d711e04227b7a9c5d9ef486512bfa45d68778925.tar.xz
Fix merging of version histories in specification documentation.
Diffstat (limited to 'lv2specgen')
-rwxr-xr-xlv2specgen/lv2specgen.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/lv2specgen/lv2specgen.py b/lv2specgen/lv2specgen.py
index f62de8d..b356bd7 100755
--- a/lv2specgen/lv2specgen.py
+++ b/lv2specgen/lv2specgen.py
@@ -937,7 +937,7 @@ def releaseChangeset(m, release, prefix=''):
return entry
-def specHistoryEntries(m, subject, entries={}):
+def specHistoryEntries(m, subject, entries):
for r in findStatements(m, subject, doap.release, None):
release = getObject(r)
revNode = findOne(m, release, doap.revision, None)
@@ -981,7 +981,7 @@ def specHistoryMarkup(entries):
def specHistory(m, subject):
- return specHistoryMarkup(specHistoryEntries(m, subject))
+ return specHistoryMarkup(specHistoryEntries(m, subject, {}))
def specVersion(m, subject):
@@ -1099,6 +1099,7 @@ def specgen(specloc, indir, style_uri, docdir, tags, opts, instances=False):
template = None
f = open(temploc, "r")
template = f.read()
+ f.close()
# Load code documentation link map from tags file
linkmap = load_tags(tags, docdir)