diff options
author | Lars Thorsen <[email protected]> | 2010-09-28 09:46:32 +0200 |
---|---|---|
committer | Lars Thorsen <[email protected]> | 2010-12-01 12:10:51 +0100 |
commit | f11f263bade1738009d6aa8678b4ae381d2d47df (patch) | |
tree | 4700752e882c76cba1fd5029fbc3cecb07bc58fb /lib/erl_docgen/priv/xsl/db_man.xsl | |
parent | 9c37a5e56076c85e583848b02400e900a279ac5b (diff) | |
download | otp-f11f263bade1738009d6aa8678b4ae381d2d47df.tar.gz otp-f11f263bade1738009d6aa8678b4ae381d2d47df.tar.bz2 otp-f11f263bade1738009d6aa8678b4ae381d2d47df.zip |
Fix format_man_pages so it handles all man sections and remove warnings/errors in man pages
Diffstat (limited to 'lib/erl_docgen/priv/xsl/db_man.xsl')
-rw-r--r-- | lib/erl_docgen/priv/xsl/db_man.xsl | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/lib/erl_docgen/priv/xsl/db_man.xsl b/lib/erl_docgen/priv/xsl/db_man.xsl index 2ed0d95c6d..2a8fb9fe3e 100644 --- a/lib/erl_docgen/priv/xsl/db_man.xsl +++ b/lib/erl_docgen/priv/xsl/db_man.xsl @@ -323,7 +323,7 @@ <xsl:template match="list"> <xsl:text> .RS 2</xsl:text> <xsl:apply-templates/> - <xsl:text> .RE</xsl:text> + <xsl:text> .RE </xsl:text> </xsl:template> <xsl:template match="list/item"> @@ -336,7 +336,7 @@ <xsl:template match="taglist"> <xsl:text> .RS 2</xsl:text> <xsl:apply-templates select="tag|item"/> - <xsl:text> .RE</xsl:text> + <xsl:text> .RE </xsl:text> </xsl:template> <xsl:template match="taglist/tag"> @@ -622,6 +622,23 @@ <xsl:text>></xsl:text> </xsl:template> + <!-- Do not noramlize any text within pre and code tags. --> + <xsl:template match="pre/text()"> + <xsl:call-template name="replace-string"> + <xsl:with-param name="text" select="." /> + <xsl:with-param name="replace" select=""\"" /> + <xsl:with-param name="with" select=""\\"" /> + </xsl:call-template> + </xsl:template> + + <xsl:template match="code/text()"> + <xsl:call-template name="replace-string"> + <xsl:with-param name="text" select="." /> + <xsl:with-param name="replace" select=""\"" /> + <xsl:with-param name="with" select=""\\"" /> + </xsl:call-template> + </xsl:template> + <!-- Replace ' by \&' ans . by \&. --> <xsl:template match="text()"> <xsl:variable name="startstring"> |