aboutsummaryrefslogtreecommitdiffstats
path: root/lib/erl_docgen/priv/xsl
diff options
context:
space:
mode:
authorMariano Guerra <[email protected]>2016-10-31 20:52:21 +0000
committerMariano Guerra <[email protected]>2017-03-13 11:51:52 +0100
commitcf92c3a9d202b9b9c1fc999910a5c977063389e0 (patch)
tree694030a8427012703e930af8b96a3b15b0488913 /lib/erl_docgen/priv/xsl
parent17cdba11569e0e2b846fceba17f06bc87c2df4d5 (diff)
downloadotp-cf92c3a9d202b9b9c1fc999910a5c977063389e0.tar.gz
otp-cf92c3a9d202b9b9c1fc999910a5c977063389e0.tar.bz2
otp-cf92c3a9d202b9b9c1fc999910a5c977063389e0.zip
center images, make image caption markup semantic
Diffstat (limited to 'lib/erl_docgen/priv/xsl')
-rw-r--r--lib/erl_docgen/priv/xsl/db_html.xsl8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/erl_docgen/priv/xsl/db_html.xsl b/lib/erl_docgen/priv/xsl/db_html.xsl
index cf0c0de0a4..22216c65b6 100644
--- a/lib/erl_docgen/priv/xsl/db_html.xsl
+++ b/lib/erl_docgen/priv/xsl/db_html.xsl
@@ -1188,12 +1188,14 @@
<xsl:number level="any" from="chapter" count="image"/>
</xsl:variable>
- <img alt="IMAGE MISSING" src="{@file}"/><br/>
+ <div class="doc-image-wrapper">
+ <img alt="IMAGE MISSING" src="{@file}" class="doc-image"/>
<xsl:apply-templates>
<xsl:with-param name="chapnum" select="$chapnum"/>
<xsl:with-param name="fignum" select="$fignum"/>
</xsl:apply-templates>
+ </div>
</xsl:template>
@@ -1203,11 +1205,11 @@
<xsl:param name="chapnum"/>
<xsl:param name="fignum"/>
- <p><em>Figure
+ <p class="doc-image-caption">Figure
<xsl:value-of select="$chapnum"/>.<xsl:value-of select="$fignum"/>:
&#160;
<xsl:apply-templates/>
- </em></p>
+ </p>
</xsl:template>