[PATCH] Force listingblocks to be monospaced in manpages

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Fredrik Tolf <fredrik@...>
Cc: <git@...>
Date: Wednesday, July 18, 2007 - 5:33 pm

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>
---

On Wed, 18 Jul 2007, Fredrik Tolf wrote:


How about this?

Seems to work for me - but I'm not an asciidoc/docbook/roff expert ...

 Documentation/asciidoc.conf |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/Documentation/asciidoc.conf b/Documentation/asciidoc.conf
index 6b6220d..d54fe29 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;&#x2302;ft C&#10;
+endif::doctype-manpage[]
 |
+ifdef::doctype-manpage[]
+&#10;&#x2302;ft&#10;
+endif::doctype-manpage[]
 </literallayout>
 {title#}</example>
 endif::backend-docbook[]
-- 
1.5.2.2

-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: Manpage rendering faults, Fredrik Tolf, (Wed Jul 18, 4:06 pm)
[PATCH] Force listingblocks to be monospaced in manpages, Julian Phillips, (Wed Jul 18, 5:33 pm)
Re: [PATCH] Force listingblocks to be monospaced in manpages, Julian Phillips, (Wed Jul 18, 9:21 pm)
[PATCH] Force listingblocks to be monospaced in manpages, Jonas Fonseca, (Thu Jul 19, 7:37 am)
Re: [PATCH] Force listingblocks to be monospaced in manpages, Julian Phillips, (Thu Jul 19, 7:44 am)
[PATCH] Force listingblocks to be monospaced in manpages, Julian Phillips, (Wed Jul 18, 5:33 pm)
Re: [PATCH] Force listingblocks to be monospaced in manpages, Julian Phillips, (Fri Jul 20, 3:09 am)