Skip to content

Commit

Permalink
tweak manpage formatting
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Junio C Hamano committed Aug 10, 2007
1 parent f1ec6b2 commit 524e5ff
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Documentation/callouts.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -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>

0 comments on commit 524e5ff

Please sign in to comment.