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 = ""
ef='#n131'>131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169