[PATCH 2/2] tweak manpage formatting

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <git@...>
Cc: Carlos Rica <jasampler@...>
Date: Friday, August 10, 2007 - 3:49 am

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>
---

 * The illustration in git-rev-parse.1 is much easier to read
   with this...

 Documentation/callouts.xsl |   13 +++++++++++++
 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>

-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 2/2] tweak manpage formatting, Junio C Hamano, (Fri Aug 10, 3:49 am)
Re: [PATCH 2/2] tweak manpage formatting, Brian Gernhardt, (Fri Aug 10, 11:59 am)
Re: [PATCH 2/2] tweak manpage formatting, Junio C Hamano, (Fri Aug 10, 1:17 pm)
Re: [PATCH 2/2] tweak manpage formatting, Carlos Rica, (Fri Aug 10, 3:16 pm)
Re: [PATCH 2/2] tweak manpage formatting, Brian Gernhardt, (Fri Aug 10, 3:32 pm)