tweak manpage formatting
authorJunio C Hamano <gitster@pobox.com>
Fri, 10 Aug 2007 07:49:26 +0000 (00:49 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 10 Aug 2007 08:03:51 +0000 (01:03 -0700)
This attempts to force fixed-font in manpages for literal
blocks. I have tested this with docbook 1.71 and it seems to
work as expected.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/callouts.xsl
index 6a361a21367bfed4ae325049556f2e82e7e1dbe4..7941af78782ed518a7fb6532029e183c52ee4bcb 100644 (file)
   </xsl:if>
 </xsl:template>
 
+<xsl:template match="literallayout[@class='monospaced']">
+  <xsl:text>.RS</xsl:text>
+  <xsl:if test="not($man.indent.width = '')">
+    <xsl:text> </xsl:text>
+    <xsl:value-of select="$man.indent.width"/>
+  </xsl:if>
+  <xsl:text>&#10;</xsl:text>
+  <xsl:text>&#10;.ft C&#10;.nf&#10;</xsl:text>
+  <xsl:apply-templates/>
+  <xsl:text>&#10;.fi&#10;.ft&#10;</xsl:text>
+  <xsl:text>.RE&#10;</xsl:text>
+</xsl:template>
+
 </xsl:stylesheet>