From: Julian Phillips Date: Wed, 18 Jul 2007 21:33:57 +0000 (+0100) Subject: Force listingblocks to be monospaced in manpages X-Git-Tag: v1.5.3-rc3~40^2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=281a53bb79786a6d7e54f9715cc8ad46fc2bdb0e;p=git.git Force listingblocks to be monospaced in manpages 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 order for these roff commands to get through to the manpage they have to be element encoded to prevent quoting. Signed-off-by: Julian Phillips Signed-off-by: Junio C Hamano --- diff --git a/Documentation/asciidoc.conf b/Documentation/asciidoc.conf index e061f7386..a0d8459e2 100644 --- a/Documentation/asciidoc.conf +++ b/Documentation/asciidoc.conf @@ -27,7 +27,13 @@ ifdef::backend-docbook[] [listingblock] {title} +ifdef::doctype-manpage[] + .ft C +endif::doctype-manpage[] | +ifdef::doctype-manpage[] + .ft +endif::doctype-manpage[] {title#} endif::backend-docbook[]