diff options
author | Rickard Green <[email protected]> | 2014-12-17 21:07:55 +0100 |
---|---|---|
committer | Rickard Green <[email protected]> | 2015-03-20 15:00:38 +0100 |
commit | cd917e88f5718eead826c896864cfe85cd3d301b (patch) | |
tree | e0afeb8fd3f335bccf57b98fc61003e9440c70a7 /lib/erl_docgen/priv/xsl/db_man.xsl | |
parent | 843cf9120d2845be2c3304fc8dcb4c16b49bbfca (diff) | |
download | otp-cd917e88f5718eead826c896864cfe85cd3d301b.tar.gz otp-cd917e88f5718eead826c896864cfe85cd3d301b.tar.bz2 otp-cd917e88f5718eead826c896864cfe85cd3d301b.zip |
Support for <do> and <dont> doc tags
Diffstat (limited to 'lib/erl_docgen/priv/xsl/db_man.xsl')
-rw-r--r-- | lib/erl_docgen/priv/xsl/db_man.xsl | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/lib/erl_docgen/priv/xsl/db_man.xsl b/lib/erl_docgen/priv/xsl/db_man.xsl index 3bcdd11c35..0caaba560f 100644 --- a/lib/erl_docgen/priv/xsl/db_man.xsl +++ b/lib/erl_docgen/priv/xsl/db_man.xsl @@ -543,7 +543,29 @@ <xsl:text> </xsl:text> </xsl:template> - <xsl:template match="warning/p | note/p"> + <!-- Do --> + <xsl:template match="do"> + <xsl:text> .LP </xsl:text> + <xsl:text> .RS -4</xsl:text> + <xsl:text> .B </xsl:text> + <xsl:text>Do:</xsl:text> + <xsl:text> .RE</xsl:text> + <xsl:apply-templates/> + <xsl:text> </xsl:text> + </xsl:template> + + <!-- Dont --> + <xsl:template match="dont"> + <xsl:text> .LP </xsl:text> + <xsl:text> .RS -4</xsl:text> + <xsl:text> .B </xsl:text> + <xsl:text>Dont:</xsl:text> + <xsl:text> .RE</xsl:text> + <xsl:apply-templates/> + <xsl:text> </xsl:text> + </xsl:template> + + <xsl:template match="warning/p | note/p | dont/p | do/p"> <xsl:variable name="content"> <xsl:text> </xsl:text> <xsl:apply-templates/> |