From 26175f598424e83dca75fdaea5151225452abe78 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 5 Nov 2011 00:44:56 +0000 Subject: Abbreviate all URIs that are within a namespace defined in the spec. --- lv2specgen/lv2specgen.py | 2 ++ 1 file changed, 2 insertions(+) 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 = "" for i in keys: uri = namespaces[i] + ns_list[str(uri)] = i if str(uri) == str(spec_url) + '#': spec_pre = i prefixes_html += '%s ' % (uri, i) -- cgit v1.2.1