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>
This commit is contained in:
parent
f1ec6b22a8
commit
524e5ffcf4
@ -27,4 +27,17 @@
|
||||
</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>
|
||||
|
Loading…
Reference in New Issue
Block a user