{"thread":{"id":"9576","subject":"[PATCH] Properly force listingblocks to be monospaced in manpages","startedAt":"2007-08-19T21:03:17Z","lastAt":"2007-08-19T21:45:59Z","messageCount":4,"participants":["Mike Hommey"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"51018","messageId":"20070819210317.GA3202@glandium.org","threadId":"9576","inReplyTo":null,"subject":"[PATCH] Properly force listingblocks to be monospaced in manpages","fromName":"Mike Hommey","fromEmail":"mh@glandium.org","sentAt":"2007-08-19T21:03:17Z","receivedAt":"2007-08-19T21:03:17Z","isPatch":true,"sender":{"key":"mh@glandium.org","avatar":"https://avatars.githubusercontent.com/u/1038527?v=4"},"body":"Still insert a \".ft C\" before and \".ft\" after, but do it in a way as to\navoid them to get escaped with \"\\&\", which makes the manpages look pretty\nbad. Do it in a more docbook-xsl'ish way.\n\nReverts 281a53bb79786a6d7e54f9715cc8ad46fc2bdb0e.\n\nSigned-off-by: Mike Hommey <mh@glandium.org>\n---\n Documentation/asciidoc.conf |    6 ------\n Documentation/callouts.xsl  |    7 +++++++\n 2 files changed, 7 insertions(+), 6 deletions(-)\n\ndiff --git a/Documentation/asciidoc.conf b/Documentation/asciidoc.conf\nindex af5b155..6b6220d 100644\n--- a/Documentation/asciidoc.conf\n+++ b/Documentation/asciidoc.conf\n@@ -27,13 +27,7 @@ ifdef::backend-docbook[]\n [listingblock]\n <example><title>{title}</title>\n <literallayout>\n-ifdef::doctype-manpage[]\n-&#10;.ft C&#10;\n-endif::doctype-manpage[]\n |\n-ifdef::doctype-manpage[]\n-&#10;.ft&#10;\n-endif::doctype-manpage[]\n </literallayout>\n {title#}</example>\n endif::backend-docbook[]\ndiff --git a/Documentation/callouts.xsl b/Documentation/callouts.xsl\nindex 6a361a2..e188f5e 100644\n--- a/Documentation/callouts.xsl\n+++ b/Documentation/callouts.xsl\n@@ -27,4 +27,11 @@\n   </xsl:if>\n </xsl:template>\n \n+<!-- Force listingblocks to be monospaced in manpages -->\n+<xsl:template match=\"literallayout\">\n+  <xsl:text>&#x2302;ft C&#10;</xsl:text>\n+  <xsl:apply-templates/>\n+  <xsl:text>&#x2302;ft&#10;</xsl:text>\n+</xsl:template>\n+\n </xsl:stylesheet>\n-- \n1.5.3.rc4\n"},{"id":"51020","messageId":"20070819211438.GA3326@glandium.org","threadId":"9576","inReplyTo":"20070819210317.GA3202@glandium.org","subject":"Re: [PATCH] Properly force listingblocks to be monospaced in manpages","fromName":"Mike Hommey","fromEmail":"mh@glandium.org","sentAt":"2007-08-19T21:14:38Z","receivedAt":"2007-08-19T21:14:38Z","isPatch":true,"sender":{"key":"mh@glandium.org","avatar":"https://avatars.githubusercontent.com/u/1038527?v=4"},"body":"On Sun, Aug 19, 2007 at 11:03:17PM +0200, Mike Hommey <mh@glandium.org> wrote:\n> Still insert a \".ft C\" before and \".ft\" after, but do it in a way as to\n> avoid them to get escaped with \"\\&\", which makes the manpages look pretty\n> bad. Do it in a more docbook-xsl'ish way.\n\nActually, the escape thing seems to be a regression in docbook 1.72\nwhich is supposed to be fixed in 1.73...\n\nAnyways, I think it'd still be better to do this in the .xsl file.\n\nMike\n"},{"id":"51024","messageId":"20070819213205.GA3904@glandium.org","threadId":"9576","inReplyTo":"20070819211438.GA3326@glandium.org","subject":"[PATCH] Force listingblocks to be monospaced in manpages with xsl","fromName":"Mike Hommey","fromEmail":"mh@glandium.org","sentAt":"2007-08-19T21:32:05Z","receivedAt":"2007-08-19T21:32:05Z","isPatch":true,"sender":{"key":"mh@glandium.org","avatar":"https://avatars.githubusercontent.com/u/1038527?v=4"},"body":"Still insert a \".ft C\" before and \".ft\" after, but do it in a more\ndocbook-xsl'ish way.\n\nReverts 281a53bb79786a6d7e54f9715cc8ad46fc2bdb0e.\n\nSigned-off-by: Mike Hommey <mh@glandium.org>\n---\n Documentation/asciidoc.conf |    6 ------\n Documentation/callouts.xsl  |    7 +++++++\n 2 files changed, 7 insertions(+), 6 deletions(-)\n\ndiff --git a/Documentation/asciidoc.conf b/Documentation/asciidoc.conf\nindex af5b155..6b6220d 100644\n--- a/Documentation/asciidoc.conf\n+++ b/Documentation/asciidoc.conf\n@@ -27,13 +27,7 @@ ifdef::backend-docbook[]\n [listingblock]\n <example><title>{title}</title>\n <literallayout>\n-ifdef::doctype-manpage[]\n-&#10;.ft C&#10;\n-endif::doctype-manpage[]\n |\n-ifdef::doctype-manpage[]\n-&#10;.ft&#10;\n-endif::doctype-manpage[]\n </literallayout>\n {title#}</example>\n endif::backend-docbook[]\ndiff --git a/Documentation/callouts.xsl b/Documentation/callouts.xsl\nindex 6a361a2..e188f5e 100644\n--- a/Documentation/callouts.xsl\n+++ b/Documentation/callouts.xsl\n@@ -27,4 +27,11 @@\n   </xsl:if>\n </xsl:template>\n \n+<!-- Force listingblocks to be monospaced in manpages -->\n+<xsl:template match=\"literallayout\">\n+  <xsl:text>&#10;.ft C&#10;</xsl:text>\n+  <xsl:apply-templates/>\n+  <xsl:text>&#10;.ft&#10;</xsl:text>\n+</xsl:template>\n+\n </xsl:stylesheet>\n-- \n1.5.3.rc4\n"},{"id":"51025","messageId":"20070819214559.GA4692@glandium.org","threadId":"9576","inReplyTo":"20070819213205.GA3904@glandium.org","subject":"Re: [PATCH] Force listingblocks to be monospaced in manpages with xsl","fromName":"Mike Hommey","fromEmail":"mh@glandium.org","sentAt":"2007-08-19T21:45:59Z","receivedAt":"2007-08-19T21:45:59Z","isPatch":true,"sender":{"key":"mh@glandium.org","avatar":"https://avatars.githubusercontent.com/u/1038527?v=4"},"body":"On Sun, Aug 19, 2007 at 11:32:05PM +0200, Mike Hommey <mh@glandium.org> wrote:\n> Still insert a \".ft C\" before and \".ft\" after, but do it in a more\n> docbook-xsl'ish way.\n\nForget it, it fails with docbook-xsl 1.73.1...\n\nSorry for the noise.\n\nMike\n"}]}