aboutsummaryrefslogtreecommitdiffstats
path: root/lv2specgen/lv2specgen.py
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-11-05 00:44:56 +0000
committerDavid Robillard <d@drobilla.net>2011-11-05 00:44:56 +0000
commit26175f598424e83dca75fdaea5151225452abe78 (patch)
tree26e8073f47e1927c01c6060d70f7d7783e0d0ddf /lv2specgen/lv2specgen.py
parentf143549d7958495320c107e5682f54b021a482df (diff)
downloadlv2-26175f598424e83dca75fdaea5151225452abe78.tar.xz
Abbreviate all URIs that are within a namespace defined in the spec.
Diffstat (limited to 'lv2specgen/lv2specgen.py')
-rwxr-xr-xlv2specgen/lv2specgen.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/lv2specgen/lv2specgen.py b/lv2specgen/lv2specgen.py
index 44e2cc6..3293019 100755
--- a/lv2specgen/lv2specgen.py
+++ b/lv2specgen/lv2specgen.py
@@ -143,6 +143,7 @@ def niceName(uri):
if pref in ns_list:
return ns_list.get(pref, pref) + ":" + rez.group(2)
else:
+ print ns_list
return uri
@@ -914,6 +915,7 @@ def specgen(specloc, indir, docdir, style_uri, doc_base, doclinks, instances=Fal
prefixes_html = "<span>"
for i in keys:
uri = namespaces[i]
+ ns_list[str(uri)] = i
if str(uri) == str(spec_url) + '#':
spec_pre = i
prefixes_html += '<a href="%s">%s</a> ' % (uri, i)