summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Bokovoy <ab@samba.org>2008-04-07 11:08:19 +0000
committerGerald W. Carter <jerry@samba.org>2008-04-23 08:47:45 -0500
commit5166145a577321cf627b2b8ed1a72f628d23f157 (patch)
treebc9d55e9dcbc4ae46ac27360f0b45b12bdd35c31
parentcc8cfd8e9108b4cbf3c0ef3f1c7daf2c1990de47 (diff)
downloadsamba-5166145a577321cf627b2b8ed1a72f628d23f157.tar.gz
samba-5166145a577321cf627b2b8ed1a72f628d23f157.tar.bz2
samba-5166145a577321cf627b2b8ed1a72f628d23f157.zip
Forgot to add these macros to a samba-docs repository
(This used to be commit b0df61bb4d184eb2b20ff5e9c7876721e44832dd)
-rw-r--r--docs/xslt/man.xsl27
1 files changed, 27 insertions, 0 deletions
diff --git a/docs/xslt/man.xsl b/docs/xslt/man.xsl
index e403122965..99b2112cb3 100644
--- a/docs/xslt/man.xsl
+++ b/docs/xslt/man.xsl
@@ -115,5 +115,32 @@
<xsl:apply-templates/>
</xsl:template>
+ <!-- ================================================================== -->
+ <!-- These macros are from Docbook manpages XSLT development tree -->
+ <!-- help to maintain manpage generation clean when difference between -->
+ <!-- roff processors is important to note. -->
+
+ <xsl:template name="roff-if-else-start">
+ <xsl:param name="condition">n</xsl:param>
+ <xsl:text>.ie </xsl:text>
+ <xsl:value-of select="$condition"/>
+ <xsl:text> \{\&#10;</xsl:text>
+ </xsl:template>
+
+ <xsl:template name="roff-if-start">
+ <xsl:param name="condition">n</xsl:param>
+ <xsl:text>.if </xsl:text>
+ <xsl:value-of select="$condition"/>
+ <xsl:text> \{\&#10;</xsl:text>
+ </xsl:template>
+
+ <xsl:template name="roff-else">
+ <xsl:text>.\}&#10;</xsl:text>
+ <xsl:text>.el \{\&#10;</xsl:text>
+ </xsl:template>
+
+ <xsl:template name="roff-if-end">
+ <xsl:text>.\}&#10;</xsl:text>
+ </xsl:template>
</xsl:stylesheet>