summaryrefslogtreecommitdiff
path: root/Documentation/asciidoc.conf
diff options
context:
space:
mode:
authorJulian Phillips <julian@quantumfyre.co.uk>2007-07-18 21:33:57 (GMT)
committerJunio C Hamano <gitster@pobox.com>2007-07-18 23:56:20 (GMT)
commit281a53bb79786a6d7e54f9715cc8ad46fc2bdb0e (patch)
tree54a227c2009eac75fc03ab75736a8e327023ff67 /Documentation/asciidoc.conf
parentfa2e71c9e794c43634670b62d1b4bf58d1ae7e60 (diff)
downloadgit-281a53bb79786a6d7e54f9715cc8ad46fc2bdb0e.zip
git-281a53bb79786a6d7e54f9715cc8ad46fc2bdb0e.tar.gz
git-281a53bb79786a6d7e54f9715cc8ad46fc2bdb0e.tar.bz2
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.conf6
1 files changed, 6 insertions, 0 deletions
diff --git a/Documentation/asciidoc.conf b/Documentation/asciidoc.conf
index e061f73..a0d8459 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[]
+&#10;.ft C&#10;
+endif::doctype-manpage[]
|
+ifdef::doctype-manpage[]
+&#10;.ft&#10;
+endif::doctype-manpage[]
</literallayout>
{title#}</example>
endif::backend-docbook[]