diff options
author | Lars Thorsen <[email protected]> | 2015-10-16 13:04:33 +0200 |
---|---|---|
committer | Lars Thorsen <[email protected]> | 2015-11-30 08:42:17 +0100 |
commit | dd521867851c169fbab15465e9d137eb515a5ed5 (patch) | |
tree | 529edff0b84fa690268a4faa4f068a836c590906 | |
parent | 39f4c81043c00e2e1284855b07f5181b6ac28841 (diff) | |
download | otp-dd521867851c169fbab15465e9d137eb515a5ed5.tar.gz otp-dd521867851c169fbab15465e9d137eb515a5ed5.tar.bz2 otp-dd521867851c169fbab15465e9d137eb515a5ed5.zip |
[erl_docgen] Add conversion of the i tag in the XSL specs
-rw-r--r-- | lib/erl_docgen/priv/xsl/db_html.xsl | 5 | ||||
-rw-r--r-- | lib/erl_docgen/priv/xsl/db_man.xsl | 6 | ||||
-rw-r--r-- | lib/erl_docgen/priv/xsl/db_pdf.xsl | 6 |
3 files changed, 16 insertions, 1 deletions
diff --git a/lib/erl_docgen/priv/xsl/db_html.xsl b/lib/erl_docgen/priv/xsl/db_html.xsl index f5ddd364d3..c2325fbee9 100644 --- a/lib/erl_docgen/priv/xsl/db_html.xsl +++ b/lib/erl_docgen/priv/xsl/db_html.xsl @@ -990,12 +990,15 @@ </p> </xsl:template> - <!-- Inline elements --> <xsl:template match="b"> <strong><xsl:apply-templates/></strong> </xsl:template> + <xsl:template match="i"> + <i><xsl:apply-templates/></i> + </xsl:template> + <xsl:template match="br"> <br/> </xsl:template> diff --git a/lib/erl_docgen/priv/xsl/db_man.xsl b/lib/erl_docgen/priv/xsl/db_man.xsl index 120bf9880d..5201465e42 100644 --- a/lib/erl_docgen/priv/xsl/db_man.xsl +++ b/lib/erl_docgen/priv/xsl/db_man.xsl @@ -595,6 +595,12 @@ <xsl:text>\fR\& </xsl:text> </xsl:template> + <xsl:template match="i"> + <xsl:text>\fI</xsl:text> + <xsl:apply-templates/> + <xsl:text>\fR\& </xsl:text> + </xsl:template> + <xsl:template match="br"> <xsl:choose> <xsl:when test="ancestor::head"> diff --git a/lib/erl_docgen/priv/xsl/db_pdf.xsl b/lib/erl_docgen/priv/xsl/db_pdf.xsl index 53e202d52c..37a2d55274 100644 --- a/lib/erl_docgen/priv/xsl/db_pdf.xsl +++ b/lib/erl_docgen/priv/xsl/db_pdf.xsl @@ -1186,6 +1186,12 @@ </fo:inline> </xsl:template> + <xsl:template match="i"> + <fo:inline font-weight="italic"> + <xsl:apply-templates/> + </fo:inline> + </xsl:template> + <xsl:template match="br"> <fo:block/> </xsl:template> |