diff options
author | Hans Bolinder <[email protected]> | 2011-09-28 09:06:14 +0200 |
---|---|---|
committer | Hans Bolinder <[email protected]> | 2011-09-28 09:06:14 +0200 |
commit | b6a3b89471bf1e19f604e11e3405d593cf7591cd (patch) | |
tree | a708e04a74fe7d23ce94c0b7bd50dd7d7325674d /lib/erl_docgen/priv/xsl/db_man.xsl | |
parent | 58fe7b5e48ad95f14b05aae43a3a32122695da4e (diff) | |
parent | 1a8b1566f19578d6bd02ecdb753b8b8158c723bf (diff) | |
download | otp-b6a3b89471bf1e19f604e11e3405d593cf7591cd.tar.gz otp-b6a3b89471bf1e19f604e11e3405d593cf7591cd.tar.bz2 otp-b6a3b89471bf1e19f604e11e3405d593cf7591cd.zip |
Merge branch 'hb/erl_docgen/man_indentation_fix/OTP-9588' into dev
* hb/erl_docgen/man_indentation_fix/OTP-9588:
Improve indentation in manpages
Diffstat (limited to 'lib/erl_docgen/priv/xsl/db_man.xsl')
-rw-r--r-- | lib/erl_docgen/priv/xsl/db_man.xsl | 28 |
1 files changed, 26 insertions, 2 deletions
diff --git a/lib/erl_docgen/priv/xsl/db_man.xsl b/lib/erl_docgen/priv/xsl/db_man.xsl index c7efced3d2..1df96caa36 100644 --- a/lib/erl_docgen/priv/xsl/db_man.xsl +++ b/lib/erl_docgen/priv/xsl/db_man.xsl @@ -512,18 +512,42 @@ <!-- Note --> <xsl:template match="note"> - <xsl:text> .SS Note:</xsl:text> + <xsl:text> .LP </xsl:text> + <xsl:text> .RS -4</xsl:text> + <xsl:text> .B </xsl:text> + <xsl:text>Note:</xsl:text> + <xsl:text> .RE</xsl:text> <xsl:apply-templates/> <xsl:text> </xsl:text> </xsl:template> <!-- Warning --> <xsl:template match="warning"> - <xsl:text> .SS Warning:</xsl:text> + <xsl:text> .LP </xsl:text> + <xsl:text> .RS -4</xsl:text> + <xsl:text> .B </xsl:text> + <xsl:text>Warning:</xsl:text> + <xsl:text> .RE</xsl:text> <xsl:apply-templates/> <xsl:text> </xsl:text> </xsl:template> + <xsl:template match="warning/p | note/p"> + <xsl:variable name="content"> + <xsl:text> </xsl:text> + <xsl:apply-templates/> + </xsl:variable> + <xsl:choose> + <xsl:when test="position() = 1"> + <xsl:value-of select="$content"/> + </xsl:when> + <xsl:otherwise> + <xsl:text> .LP</xsl:text> + <xsl:value-of select="$content"/> + </xsl:otherwise> + </xsl:choose> + </xsl:template> + <!-- Paragraph --> <xsl:template match="p"> <xsl:text> .LP </xsl:text> |