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>
Julian Phillips committed
Jul 18, 2007 at 22:33 UTC
281a53bb79786a6d7e54f9715cc8ad46fc2bdb0e
1 file changed
+6
Documentation/asciidoc.conf
+6
@@ -27,7 +27,13 @@ ifdef::backend-docbook[]
27
[listingblock]
28
<example><title>{title}</title>
29
<literallayout>
30
+ifdef::doctype-manpage[]
31
+ .ft C
32
+endif::doctype-manpage[]
33
|
34
+ifdef::doctype-manpage[]
35
+ .ft
36
+endif::doctype-manpage[]
37
</literallayout>
38
{title#}</example>
39
endif::backend-docbook[]