diff options
author | Julian Phillips <julian@quantumfyre.co.uk> | 2007-07-18 22:33:57 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2007-07-18 16:56:20 -0700 |
commit | 281a53bb79786a6d7e54f9715cc8ad46fc2bdb0e (patch) | |
tree | 54a227c2009eac75fc03ab75736a8e327023ff67 /Documentation/asciidoc.conf | |
parent | fa2e71c9e794c43634670b62d1b4bf58d1ae7e60 (diff) | |
download | git-281a53bb79786a6d7e54f9715cc8ad46fc2bdb0e.tar.gz |
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 <julian@quantumfyre.co.uk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/asciidoc.conf')
-rw-r--r-- | Documentation/asciidoc.conf | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Documentation/asciidoc.conf b/Documentation/asciidoc.conf index e061f73867..a0d8459e21 100644 --- a/Documentation/asciidoc.conf +++ b/Documentation/asciidoc.conf @@ -27,7 +27,13 @@ ifdef::backend-docbook[] [listingblock] <example><title>{title}</title> <literallayout> +ifdef::doctype-manpage[] + .ft C +endif::doctype-manpage[] | +ifdef::doctype-manpage[] + .ft +endif::doctype-manpage[] </literallayout> {title#}</example> endif::backend-docbook[] |