diff options
author | Patrik Nyblom <[email protected]> | 2013-07-30 14:37:49 +0200 |
---|---|---|
committer | Patrik Nyblom <[email protected]> | 2013-08-09 12:10:53 +0200 |
commit | 3e760de63ba212dd6e1e1de6d797202c60fcb26a (patch) | |
tree | 9461324a74fb9c5975686b91377aa24639b65896 /lib | |
parent | c83abd94e3b69cad2927378123c5f10c7f8aafe5 (diff) | |
download | otp-3e760de63ba212dd6e1e1de6d797202c60fcb26a.tar.gz otp-3e760de63ba212dd6e1e1de6d797202c60fcb26a.tar.bz2 otp-3e760de63ba212dd6e1e1de6d797202c60fcb26a.zip |
Fix backslash in titles of manpages
A cludge which replaces one backslash with three in section headers when
generating manpages from xml files.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/erl_docgen/priv/xsl/db_man.xsl | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/lib/erl_docgen/priv/xsl/db_man.xsl b/lib/erl_docgen/priv/xsl/db_man.xsl index 33808859c7..3bcdd11c35 100644 --- a/lib/erl_docgen/priv/xsl/db_man.xsl +++ b/lib/erl_docgen/priv/xsl/db_man.xsl @@ -454,13 +454,21 @@ <!-- *ref/Section --> <xsl:template match="erlref/section|comref/section|cref/section|fileref/section|appref/section"> - <xsl:text> .SH "</xsl:text><xsl:value-of select="translate(title, 'abcdefghijklmnopqrstuvwxyz','ABCDEFGHIJKLMNOPQRSTUVWXYZ')"/><xsl:text>" </xsl:text> + <xsl:text> .SH "</xsl:text><xsl:call-template name="replace-string"> + <xsl:with-param name="text" select="translate(title, 'abcdefghijklmnopqrstuvwxyz','ABCDEFGHIJKLMNOPQRSTUVWXYZ')" /> + <xsl:with-param name="replace" select=""\"" /> + <xsl:with-param name="with" select=""\\\"" /> + </xsl:call-template><xsl:text>" </xsl:text> <xsl:apply-templates/> </xsl:template> <!-- *ref/Subsection --> <xsl:template match="section/section"> - <xsl:text> .SS "</xsl:text><xsl:value-of select="title"/><xsl:text>" </xsl:text> + <xsl:text> .SS "</xsl:text><xsl:call-template name="replace-string"> + <xsl:with-param name="text" select="title" /> + <xsl:with-param name="replace" select=""\"" /> + <xsl:with-param name="with" select=""\\\"" /> + </xsl:call-template><xsl:text>" </xsl:text> <xsl:apply-templates/> </xsl:template> |