Properly force listingblocks to be monospaced in manpages
PATCH 1/1 Properly force listingblocks to be monospaced in manpages
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.
--- Documentation/asciidoc.conf | 6 ------ Documentation/callouts.xsl | 7 +++++++ 2 files changed, 7 insertions(+), 6 deletions(-)
Documentation/asciidoc.conf +0 -6
@@ -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[]
Documentation/callouts.xsl +7 -0
@@ -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>
Signature · 1 line
1.5.3.rc4
Quoted 3 lines · Mike Hommey
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
PATCH 1/1 Force listingblocks to be monospaced in manpages with xsl
Still insert a ".ft C" before and ".ft" after, but do it in a more docbook-xsl'ish way.
Reverts 281a53bb79786a6d7e54f9715cc8ad46fc2bdb0e.
--- Documentation/asciidoc.conf | 6 ------ Documentation/callouts.xsl | 7 +++++++ 2 files changed, 7 insertions(+), 6 deletions(-)
Documentation/asciidoc.conf +0 -6
@@ -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[]
Documentation/callouts.xsl +7 -0
@@ -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>
Signature · 1 line
1.5.3.rc4
Re: [PATCH] Force listingblocks to be monospaced in manpages with xsl
Quoted 2 lines · Mike Hommey
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