aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xlv2specgen/lv2specgen.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/lv2specgen/lv2specgen.py b/lv2specgen/lv2specgen.py
index bb901f9..8fc1f93 100755
--- a/lv2specgen/lv2specgen.py
+++ b/lv2specgen/lv2specgen.py
@@ -405,7 +405,14 @@ def docTerms(category, list, m):
if label!='':
doc += "<div property=\"rdfs:label\" class=\"label\">%s</div>" % label
if comment!='':
- doc += "<div property=\"rdfs:comment\">%s</div>" % comment.replace('\n\n', '<br /><br />')
+ comment = comment.replace('\n\n', '<br /><br />')
+ matches = re.findall('href="urn:struct:([^"]*)"', comment)
+ if matches:
+ for match in matches:
+ struct_uri = "../../doc/html/struct" + match.replace('_', '__') + '.html'
+ comment = comment.replace('href="urn:struct:' + match + '"',
+ 'href="' + struct_uri + '"')
+ doc += "<div property=\"rdfs:comment\">%s</div>" % comment
if label!='' or comment != '':
doc += "</div>"
terminfo = ""