aboutsummaryrefslogtreecommitdiffstats
path: root/lib/erl_docgen/priv/xsl/db_pdf.xsl
diff options
context:
space:
mode:
authorLars Thorsen <[email protected]>2016-06-01 14:39:04 +0200
committerLars Thorsen <[email protected]>2016-06-01 14:39:04 +0200
commit9cbdf29184f4dd54c0b332c153809c0cfa9dbd69 (patch)
treeaa5fadcfc0a56462188df418a9f9f8203a8967a7 /lib/erl_docgen/priv/xsl/db_pdf.xsl
parentd7e91348bc49a8f46a4d8223d522e2d92469f6da (diff)
parentbd52bd5e8082f358b84694ef45a8f44358d1a35c (diff)
downloadotp-9cbdf29184f4dd54c0b332c153809c0cfa9dbd69.tar.gz
otp-9cbdf29184f4dd54c0b332c153809c0cfa9dbd69.tar.bz2
otp-9cbdf29184f4dd54c0b332c153809c0cfa9dbd69.zip
Merge branch 'lars/system-doc-xmllint-errors/OTP-13638'
* lars/system-doc-xmllint-errors/OTP-13638: [erl_docgen] Fix anchor bug for sections in ref manuals Remove usage of non dtd defined tag (<output>) [erl_docgen] Fix support for quote tag [erl_docgen] Correct the handling of marker tags Correct usage of marker tag [erl_docgen] Add new formatting for header level 4 and below Make it possible to run xmllint target in system documentation
Diffstat (limited to 'lib/erl_docgen/priv/xsl/db_pdf.xsl')
-rw-r--r--lib/erl_docgen/priv/xsl/db_pdf.xsl26
1 files changed, 18 insertions, 8 deletions
diff --git a/lib/erl_docgen/priv/xsl/db_pdf.xsl b/lib/erl_docgen/priv/xsl/db_pdf.xsl
index e5e624ac4c..99263847fb 100644
--- a/lib/erl_docgen/priv/xsl/db_pdf.xsl
+++ b/lib/erl_docgen/priv/xsl/db_pdf.xsl
@@ -1171,6 +1171,16 @@
</fo:block>
</xsl:template>
+ <!-- Quote -->
+ <xsl:template match="quote">
+ <xsl:param name="chapnum"/>
+ <fo:block font-style="italic">
+ <xsl:apply-templates>
+ <xsl:with-param name="chapnum" select="$chapnum"/>
+ </xsl:apply-templates>
+ </fo:block>
+ </xsl:template>
+
<!-- Paragraph -->
<xsl:template match="p">
<fo:block xsl:use-attribute-sets="p">
@@ -1180,14 +1190,8 @@
<!-- Inline elements -->
- <xsl:template match="b">
- <fo:inline font-weight="bold">
- <xsl:apply-templates/>
- </fo:inline>
- </xsl:template>
-
<xsl:template match="i">
- <fo:inline font-weight="italic">
+ <fo:inline font-style="italic">
<xsl:apply-templates/>
</fo:inline>
</xsl:template>
@@ -1203,7 +1207,13 @@
</xsl:template>
<xsl:template match="em">
- <fo:inline font-style="italic">
+ <fo:inline font-weight="bold">
+ <xsl:apply-templates/>
+ </fo:inline>
+ </xsl:template>
+
+ <xsl:template match="strong">
+ <fo:inline font-weight="bold">
<xsl:apply-templates/>
</fo:inline>
</xsl:template>