* [PATCH] Properly force listingblocks to be monospaced in manpages
@ 2007-08-19 21:03 Mike Hommey
2007-08-19 21:14 ` Mike Hommey
0 siblings, 1 reply; 4+ messages in thread
From: Mike Hommey @ 2007-08-19 21:03 UTC (permalink / raw)
To: Git Mailing List
Still insert a ".ft C" before and ".ft" after, but do it in a way as to
avoid them to get escaped with "\&", which makes the manpages look pretty
bad. Do it in a more docbook-xsl'ish way.
Reverts 281a53bb79786a6d7e54f9715cc8ad46fc2bdb0e.
Signed-off-by: Mike Hommey <mh@glandium.org>
---
Documentation/asciidoc.conf | 6 ------
Documentation/callouts.xsl | 7 +++++++
2 files changed, 7 insertions(+), 6 deletions(-)
diff --git a/Documentation/asciidoc.conf b/Documentation/asciidoc.conf
index af5b155..6b6220d 100644
--- a/Documentation/asciidoc.conf
+++ b/Documentation/asciidoc.conf
@@ -27,13 +27,7 @@ ifdef::backend-docbook[]
[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[]
diff --git a/Documentation/callouts.xsl b/Documentation/callouts.xsl
index 6a361a2..e188f5e 100644
--- a/Documentation/callouts.xsl
+++ b/Documentation/callouts.xsl
@@ -27,4 +27,11 @@
</xsl:if>
</xsl:template>
+<!-- Force listingblocks to be monospaced in manpages -->
+<xsl:template match="literallayout">
+ <xsl:text>⌂ft C </xsl:text>
+ <xsl:apply-templates/>
+ <xsl:text>⌂ft </xsl:text>
+</xsl:template>
+
</xsl:stylesheet>
--
1.5.3.rc4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] Properly force listingblocks to be monospaced in manpages
2007-08-19 21:03 [PATCH] Properly force listingblocks to be monospaced in manpages Mike Hommey
@ 2007-08-19 21:14 ` Mike Hommey
2007-08-19 21:32 ` [PATCH] Force listingblocks to be monospaced in manpages with xsl Mike Hommey
0 siblings, 1 reply; 4+ messages in thread
From: Mike Hommey @ 2007-08-19 21:14 UTC (permalink / raw)
To: Git Mailing List
On Sun, Aug 19, 2007 at 11:03:17PM +0200, Mike Hommey <mh@glandium.org> wrote:
> Still insert a ".ft C" before and ".ft" after, but do it in a way as to
> avoid them to get escaped with "\&", which makes the manpages look pretty
> bad. Do it in a more docbook-xsl'ish way.
Actually, the escape thing seems to be a regression in docbook 1.72
which is supposed to be fixed in 1.73...
Anyways, I think it'd still be better to do this in the .xsl file.
Mike
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH] Force listingblocks to be monospaced in manpages with xsl
2007-08-19 21:14 ` Mike Hommey
@ 2007-08-19 21:32 ` Mike Hommey
2007-08-19 21:45 ` Mike Hommey
0 siblings, 1 reply; 4+ messages in thread
From: Mike Hommey @ 2007-08-19 21:32 UTC (permalink / raw)
To: Git Mailing List
Still insert a ".ft C" before and ".ft" after, but do it in a more
docbook-xsl'ish way.
Reverts 281a53bb79786a6d7e54f9715cc8ad46fc2bdb0e.
Signed-off-by: Mike Hommey <mh@glandium.org>
---
Documentation/asciidoc.conf | 6 ------
Documentation/callouts.xsl | 7 +++++++
2 files changed, 7 insertions(+), 6 deletions(-)
diff --git a/Documentation/asciidoc.conf b/Documentation/asciidoc.conf
index af5b155..6b6220d 100644
--- a/Documentation/asciidoc.conf
+++ b/Documentation/asciidoc.conf
@@ -27,13 +27,7 @@ ifdef::backend-docbook[]
[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[]
diff --git a/Documentation/callouts.xsl b/Documentation/callouts.xsl
index 6a361a2..e188f5e 100644
--- a/Documentation/callouts.xsl
+++ b/Documentation/callouts.xsl
@@ -27,4 +27,11 @@
</xsl:if>
</xsl:template>
+<!-- Force listingblocks to be monospaced in manpages -->
+<xsl:template match="literallayout">
+ <xsl:text> .ft C </xsl:text>
+ <xsl:apply-templates/>
+ <xsl:text> .ft </xsl:text>
+</xsl:template>
+
</xsl:stylesheet>
--
1.5.3.rc4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] Force listingblocks to be monospaced in manpages with xsl
2007-08-19 21:32 ` [PATCH] Force listingblocks to be monospaced in manpages with xsl Mike Hommey
@ 2007-08-19 21:45 ` Mike Hommey
0 siblings, 0 replies; 4+ messages in thread
From: Mike Hommey @ 2007-08-19 21:45 UTC (permalink / raw)
To: Git Mailing List
On Sun, Aug 19, 2007 at 11:32:05PM +0200, Mike Hommey <mh@glandium.org> wrote:
> Still insert a ".ft C" before and ".ft" after, but do it in a more
> docbook-xsl'ish way.
Forget it, it fails with docbook-xsl 1.73.1...
Sorry for the noise.
Mike
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-08-19 21:46 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-19 21:03 [PATCH] Properly force listingblocks to be monospaced in manpages Mike Hommey
2007-08-19 21:14 ` Mike Hommey
2007-08-19 21:32 ` [PATCH] Force listingblocks to be monospaced in manpages with xsl Mike Hommey
2007-08-19 21:45 ` Mike Hommey
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).