aboutsummaryrefslogtreecommitdiffstats
path: root/lib/erl_docgen/priv/xsl/db_html.xsl
diff options
context:
space:
mode:
authorRaimo Niskanen <[email protected]>2018-03-28 11:07:28 +0200
committerRaimo Niskanen <[email protected]>2018-03-29 14:51:01 +0200
commite7f98a17f139865520e3f961e53d4a722b158223 (patch)
treedb753edf34bfd1f2f1066ec42a3e36023f4195c1 /lib/erl_docgen/priv/xsl/db_html.xsl
parentd86fd35ca0c65069955a34d6ae9fbc33b9663eb0 (diff)
downloadotp-e7f98a17f139865520e3f961e53d4a722b158223.tar.gz
otp-e7f98a17f139865520e3f961e53d4a722b158223.tar.bz2
otp-e7f98a17f139865520e3f961e53d4a722b158223.zip
erl_docgen: Implement width in image tag
Diffstat (limited to 'lib/erl_docgen/priv/xsl/db_html.xsl')
-rw-r--r--lib/erl_docgen/priv/xsl/db_html.xsl11
1 files changed, 9 insertions, 2 deletions
diff --git a/lib/erl_docgen/priv/xsl/db_html.xsl b/lib/erl_docgen/priv/xsl/db_html.xsl
index 5b7eae4f73..d3ca08f393 100644
--- a/lib/erl_docgen/priv/xsl/db_html.xsl
+++ b/lib/erl_docgen/priv/xsl/db_html.xsl
@@ -3,7 +3,7 @@
#
# %CopyrightBegin%
#
- # Copyright Ericsson AB 2009-2017. All Rights Reserved.
+ # Copyright Ericsson AB 2009-2018. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -1214,7 +1214,14 @@
</xsl:variable>
<div class="doc-image-wrapper">
- <img alt="IMAGE MISSING" src="{@file}" class="doc-image"/>
+ <xsl:choose>
+ <xsl:when test="@width">
+ <img alt="IMAGE MISSING" width="{@width}" src="{@file}" class="doc-image"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <img alt="IMAGE MISSING" src="{@file}" class="doc-image"/>
+ </xsl:otherwise>
+ </xsl:choose>
<xsl:apply-templates>
<xsl:with-param name="chapnum" select="$chapnum"/>