Skip to content

Commit 281a53b

Browse files
qurgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent fa2e71c commit 281a53b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Documentation/asciidoc.conf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,13 @@ ifdef::backend-docbook[]
2727
[listingblock]
2828
<example><title>{title}</title>
2929
<literallayout>
30+
ifdef::doctype-manpage[]
31+
&#10;.ft C&#10;
32+
endif::doctype-manpage[]
3033
|
34+
ifdef::doctype-manpage[]
35+
&#10;.ft&#10;
36+
endif::doctype-manpage[]
3137
</literallayout>
3238
{title#}</example>
3339
endif::backend-docbook[]

0 commit comments

Comments
 (0)