summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f1ec6b2)
raw | patch | inline | side by side (parent: f1ec6b2)
author | Junio C Hamano <gitster@pobox.com> | |
Fri, 10 Aug 2007 07:49:26 +0000 (00:49 -0700) | ||
committer | Junio 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>
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 | patch | blob | history |
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> </xsl:text>
+ <xsl:text> .ft C .nf </xsl:text>
+ <xsl:apply-templates/>
+ <xsl:text> .fi .ft </xsl:text>
+ <xsl:text>.RE </xsl:text>
+</xsl:template>
+
</xsl:stylesheet>