summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: fa2e71c)
raw | patch | inline | side by side (parent: fa2e71c)
author | Julian Phillips <julian@quantumfyre.co.uk> | |
Wed, 18 Jul 2007 21:33:57 +0000 (22:33 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 18 Jul 2007 23:56:20 +0000 (16:56 -0700) |
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>
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>
Documentation/asciidoc.conf | patch | blob | history |
index e061f73867bb4d582fb88907b0a11fb2bf7816fd..a0d8459e21e8ba91df8f3458c49ba1cd825d7706 100644 (file)
[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[]