aboutsummaryrefslogtreecommitdiffstats
path: root/lib/erl_docgen
diff options
context:
space:
mode:
authorLars Thorsen <[email protected]>2016-05-13 14:29:14 +0200
committerLars Thorsen <[email protected]>2016-06-01 14:38:36 +0200
commit50f0293a843872b7982ad7631ac07fa652f4d16c (patch)
tree03145370005d1c4fe624813ccc0812b7cc2a6758 /lib/erl_docgen
parenta3afcff92485b6a696e40359a7d0300d4661e9c1 (diff)
downloadotp-50f0293a843872b7982ad7631ac07fa652f4d16c.tar.gz
otp-50f0293a843872b7982ad7631ac07fa652f4d16c.tar.bz2
otp-50f0293a843872b7982ad7631ac07fa652f4d16c.zip
[erl_docgen] Add new formatting for header level 4 and below
Diffstat (limited to 'lib/erl_docgen')
-rw-r--r--lib/erl_docgen/priv/xsl/db_html.xsl16
1 files changed, 14 insertions, 2 deletions
diff --git a/lib/erl_docgen/priv/xsl/db_html.xsl b/lib/erl_docgen/priv/xsl/db_html.xsl
index fa5c15cfa8..c7fdabfcf1 100644
--- a/lib/erl_docgen/priv/xsl/db_html.xsl
+++ b/lib/erl_docgen/priv/xsl/db_html.xsl
@@ -829,7 +829,7 @@
</xsl:apply-templates>
</xsl:template>
- <!-- Subsections lvl 3 and ... -->
+ <!-- Subsections lvl 3 -->
<xsl:template match="section/section">
<xsl:param name="chapnum"/>
<xsl:param name="sectnum"/>
@@ -842,6 +842,19 @@
</xsl:apply-templates>
</xsl:template>
+ <!-- Subsections lvl 4 and ... -->
+ <xsl:template match="section/section/section">
+ <xsl:param name="chapnum"/>
+ <xsl:param name="sectnum"/>
+ <h5>
+ <!-- xsl:value-of select="$partnum"/>.<xsl:value-of select="$chapnum"/>.<xsl:value-of select="$sectnum"/>.<xsl:number/ -->
+ <xsl:value-of select="title"/>
+ </h5>
+ <xsl:apply-templates>
+ <xsl:with-param name="chapnum" select="$chapnum"/>
+ </xsl:apply-templates>
+ </xsl:template>
+
<!-- *ref/Section -->
<xsl:template match="erlref/section|cref/section|comref/section|fileref/section|appref/section">
<xsl:param name="chapnum"/>
@@ -873,7 +886,6 @@
<!-- Lists -->
-
<xsl:template match="list">
<xsl:param name="chapnum"/>
<ul>