From: Jonas Fonseca Date: Thu, 19 Jul 2007 11:37:43 GMT Subject: [PATCH] Force listingblocks to be monospaced in manpages Message-ID: <20070719113743.GA27553@diku.dk> In-Reply-To: For the html output we can use a stylesheet to make sure that the listingblocks are presented in a monospaced font. For the manpages do it manually by inserting a ".ft C" before and ".ft" after the block in question. In addition, also add an empty line after all verbatim blocks. Signed-off-by: Jonas Fonseca --- Julian Phillips wrote Thu, Jul 19, 2007: > On Wed, 18 Jul 2007, Junio C Hamano wrote: > > >I tried with your patch, both with asciidoc7 and asciidoc8. Did > >you really mean "⌂" above? Replacing them with "." gave > >me a series of these changes (diff between output before and > >after your patch with the "s/\⌂/./g" fixup): > > I did mean it. I originally just had .ft, but I was getting \&.ft in the > manpage, which then just came out as .ft in the console. This is because AsciiDoc does the escaping. I think it would be cleaner to do this thing when converting from DocBook to roff like we already do for other things. While fixing the above, a fix for separating verbatim blocks from any following blocks is easy to apply. diff --git a/Documentation/callouts.xsl b/Documentation/callouts.xsl index 6a361a2..44ab77d 100644 --- a/Documentation/callouts.xsl +++ b/Documentation/callouts.xsl @@ -27,4 +27,93 @@ + + + + + + + Yes + + + + + + + + + + + + + + + + + .sp + + + + + .RS + + + + + + + + + + + + + + + + + + + + + + + + + + .ft + + + .nf + + + .fi + .ft + + + + .nf + .ft C + + + .ft + + .fi + + + + + .RE + + + + + .sp + + + -- Jonas Fonseca