tweak manpage formatting
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>
Junio C Hamano committed
Aug 10, 2007 at 00:49 UTC
524e5ffcf41a67ec113a9c3730ddc8fb8d3317f5
1 file changed
+13
Documentation/callouts.xsl
+13
@@ -27,4 +27,17 @@
27
</xsl:if>
28
</xsl:template>
29
30
+<xsl:template match="literallayout[@class='monospaced']">
31
+ <xsl:text>.RS</xsl:text>
32
+ <xsl:if test="not($man.indent.width = '')">
33
+ <xsl:text> </xsl:text>
34
+ <xsl:value-of select="$man.indent.width"/>
35
+ </xsl:if>
36
+ <xsl:text> </xsl:text>
37
+ <xsl:text> .ft C .nf </xsl:text>
38
+ <xsl:apply-templates/>
39
+ <xsl:text> .fi .ft </xsl:text>
40
+ <xsl:text>.RE </xsl:text>
41
+</xsl:template>
42
+
43
</xsl:stylesheet>