aboutsummaryrefslogtreecommitdiffstats
path: root/lib/erl_docgen
diff options
context:
space:
mode:
authorLars Thorsen <[email protected]>2012-09-20 16:33:14 +0200
committerLars Thorsen <[email protected]>2012-11-16 12:04:37 +0100
commitf0197373229b7ef72ef808476bfcb65eebfd1b82 (patch)
tree32e136058ec3ae60473c0f64dff5845722343e17 /lib/erl_docgen
parent1ed373b9ef39f70c1135a53fe7f715944b8abc23 (diff)
downloadotp-f0197373229b7ef72ef808476bfcb65eebfd1b82.tar.gz
otp-f0197373229b7ef72ef808476bfcb65eebfd1b82.tar.bz2
otp-f0197373229b7ef72ef808476bfcb65eebfd1b82.zip
[erl_docgen] Add possibility to specify pdf filename
Diffstat (limited to 'lib/erl_docgen')
-rw-r--r--lib/erl_docgen/priv/xsl/db_html.xsl9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/erl_docgen/priv/xsl/db_html.xsl b/lib/erl_docgen/priv/xsl/db_html.xsl
index 609f5b7497..ab5f24c406 100644
--- a/lib/erl_docgen/priv/xsl/db_html.xsl
+++ b/lib/erl_docgen/priv/xsl/db_html.xsl
@@ -752,7 +752,14 @@
<xsl:if test="boolean(/book/releasenotes)">
<a href="release_notes.html">Release Notes</a><br/>
</xsl:if>
- <a href="{$pdfdir}/{$appname}-{$appver}.pdf">PDF</a><br/>
+ <xsl:choose>
+ <xsl:when test="string-length($pdfname) > 0">
+ <a href="{$pdfdir}/{$pdfname}.pdf">PDF</a><br/>
+ </xsl:when>
+ <xsl:otherwise>
+ <a href="{$pdfdir}/{$appname}-{$appver}.pdf">PDF</a><br/>
+ </xsl:otherwise>
+ </xsl:choose>
<a href="{$topdocdir}/index.html">Top</a>
</small>
</xsl:template>