aboutsummaryrefslogtreecommitdiffstats
path: root/lv2specgen
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2016-08-24 19:38:46 -0400
committerDavid Robillard <d@drobilla.net>2016-08-24 19:38:46 -0400
commitd25f3ab7db20dcc9ce4d10bc96dfc53b85c3c67a (patch)
tree74288fb13de021812bb0cc63e4d868bb40473a28 /lv2specgen
parent02480a60543bf9e90c87e6448138fac1dd19e34b (diff)
downloadlv2-d25f3ab7db20dcc9ce4d10bc96dfc53b85c3c67a.tar.xz
Fix HTML in title of documentation pages
Diffstat (limited to 'lv2specgen')
-rwxr-xr-xlv2specgen/lv2specgen.py2
-rw-r--r--lv2specgen/template.html2
2 files changed, 3 insertions, 1 deletions
diff --git a/lv2specgen/lv2specgen.py b/lv2specgen/lv2specgen.py
index 0aea05b..0a77b78 100755
--- a/lv2specgen/lv2specgen.py
+++ b/lv2specgen/lv2specgen.py
@@ -1222,9 +1222,11 @@ def specgen(specloc, indir, style_uri, docdir, tags, opts, instances=False, root
termlist += docTerms('Instance', instalist, m, classlist, proplist, instalist)
name = specProperty(m, spec, doap.name)
+ title = name
if root_link:
name = '<a href="%s">%s</a>' % (root_link, name)
+ template = template.replace('@TITLE@', title)
template = template.replace('@NAME@', name)
template = template.replace('@SHORT_DESC@', specProperty(m, spec, doap.shortdesc))
template = template.replace('@URI@', spec)
diff --git a/lv2specgen/template.html b/lv2specgen/template.html
index fb79c31..5056aef 100644
--- a/lv2specgen/template.html
+++ b/lv2specgen/template.html
@@ -10,7 +10,7 @@
@XMLNS@
xml:lang="en">
<head>
- <title>@NAME@</title>
+ <title>@TITLE@</title>
<meta http-equiv="content-type" content="text/xhtml+xml; charset=utf-8" />
<meta name="generator" content="lv2specgen" />
<link href="@STYLE_URI@" rel="stylesheet" type="text/css" />