summaryrefslogtreecommitdiff
path: root/Documentation/callouts.xsl
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2007-08-10 07:49:26 (GMT)
committerJunio C Hamano <gitster@pobox.com>2007-08-10 08:03:51 (GMT)
commit524e5ffcf41a67ec113a9c3730ddc8fb8d3317f5 (patch)
treee70cce84a268c4e0eba81f663e0ff04ba4f6b72e /Documentation/callouts.xsl
parentf1ec6b22a8c1ab1cca0f1875f85aea5d2434e5a6 (diff)
downloadgit-524e5ffcf41a67ec113a9c3730ddc8fb8d3317f5.zip
git-524e5ffcf41a67ec113a9c3730ddc8fb8d3317f5.tar.gz
git-524e5ffcf41a67ec113a9c3730ddc8fb8d3317f5.tar.bz2
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>
Diffstat (limited to 'Documentation/callouts.xsl')
-rw-r--r--Documentation/callouts.xsl13
1 files changed, 13 insertions, 0 deletions
diff --git a/Documentation/callouts.xsl b/Documentation/callouts.xsl
index 6a361a2..7941af7 100644
--- a/Documentation/callouts.xsl
+++ b/Documentation/callouts.xsl
@@ -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>&#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>