{"thread":{"id":"9468","subject":"[PATCH 2/2] tweak manpage formatting","startedAt":"2007-08-10T07:49:26Z","lastAt":"2007-08-10T19:32:07Z","messageCount":5,"participants":["Junio C Hamano","Brian Gernhardt","Carlos Rica"],"isPatch":true,"patchVersion":1,"patchTotal":2},"messages":[{"id":"50388","messageId":"7vbqdfvng9.fsf@assigned-by-dhcp.cox.net","threadId":"9468","inReplyTo":null,"subject":"[PATCH 2/2] tweak manpage formatting","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2007-08-10T07:49:26Z","receivedAt":"2007-08-10T07:49:26Z","isPatch":true,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"This attempts to force fixed-font in manpages for literal\nblocks.  I have tested this with docbook 1.71 and it seems to\nwork as expected.\n\nSigned-off-by: Junio C Hamano <gitster@pobox.com>\n---\n\n * The illustration in git-rev-parse.1 is much easier to read\n   with this...\n\n Documentation/callouts.xsl |   13 +++++++++++++\n 1 files changed, 13 insertions(+), 0 deletions(-)\n\ndiff --git a/Documentation/callouts.xsl b/Documentation/callouts.xsl\nindex 6a361a2..7941af7 100644\n--- a/Documentation/callouts.xsl\n+++ b/Documentation/callouts.xsl\n@@ -27,4 +27,17 @@\n   </xsl:if>\n </xsl:template>\n \n+<xsl:template match=\"literallayout[@class='monospaced']\">\n+  <xsl:text>.RS</xsl:text>\n+  <xsl:if test=\"not($man.indent.width = '')\">\n+    <xsl:text> </xsl:text>\n+    <xsl:value-of select=\"$man.indent.width\"/>\n+  </xsl:if>\n+  <xsl:text>&#10;</xsl:text>\n+  <xsl:text>&#10;.ft C&#10;.nf&#10;</xsl:text>\n+  <xsl:apply-templates/>\n+  <xsl:text>&#10;.fi&#10;.ft&#10;</xsl:text>\n+  <xsl:text>.RE&#10;</xsl:text>\n+</xsl:template>\n+\n </xsl:stylesheet>\n"},{"id":"50419","messageId":"0F764326-63E8-447D-A2D4-E56E999775D7@silverinsanity.com","threadId":"9468","inReplyTo":"7vbqdfvng9.fsf@assigned-by-dhcp.cox.net","subject":"Re: [PATCH 2/2] tweak manpage formatting","fromName":"Brian Gernhardt","fromEmail":"benji@silverinsanity.com","sentAt":"2007-08-10T15:59:12Z","receivedAt":"2007-08-10T15:59:12Z","isPatch":true,"sender":{"key":"benji@silverinsanity.com","avatar":"https://gravatar.com/avatar/e06c101dbc25c68114d859b4a9ec7cf8a2c52fd2b0270ef0eac0e2e63ff22311?d=mp&s=160"},"body":"\nOn Aug 10, 2007, at 3:49 AM, Junio C Hamano wrote:\n\n> This attempts to force fixed-font in manpages for literal\n> blocks.  I have tested this with docbook 1.71 and it seems to\n> work as expected.\n\nThis broke building the manpages with docbook-xsl 1.69.  Apparently  \nit doesn't understand \"man.indent.width\".  I fixed it by updating to  \n1.71 from fink.  I don't know if 1.71 is the minimum supported  \nversion so thought this might be worth a note.\n\n~~ Brian\n"},{"id":"50428","messageId":"7v3ayrtil5.fsf@assigned-by-dhcp.cox.net","threadId":"9468","inReplyTo":"0F764326-63E8-447D-A2D4-E56E999775D7@silverinsanity.com","subject":"Re: [PATCH 2/2] tweak manpage formatting","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2007-08-10T17:17:26Z","receivedAt":"2007-08-10T17:17:26Z","isPatch":true,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Thanks, I'll revert that one.\n"},{"id":"50435","messageId":"1b46aba20708101216s7660741ds5ef4c4c0fd13b45c@mail.gmail.com","threadId":"9468","inReplyTo":"7v3ayrtil5.fsf@assigned-by-dhcp.cox.net","subject":"Re: [PATCH 2/2] tweak manpage formatting","fromName":"Carlos Rica","fromEmail":"jasampler@gmail.com","sentAt":"2007-08-10T19:16:14Z","receivedAt":"2007-08-10T19:16:14Z","isPatch":true,"sender":{"key":"jasampler@gmail.com","avatar":null},"body":"I think this was because the end-of-line backslash \"\\\" in the ASCII\nart diagram in the Documentation/git-rev-parse.txt.\n\nI think it should be an interesting feature for asciidoc to have long \\\nlines broken in text version, if only would be a way to disable it.\n\nTried someone to escape that backslash with another backslash before\n(as in \"\\\\\")?\n\n2007/8/10, Junio C Hamano <gitster@pobox.com>:\n> Thanks, I'll revert that one.\n>\n>\n"},{"id":"50440","messageId":"3BCFD157-64CE-408E-BFE8-C720A9FAE080@silverinsanity.com","threadId":"9468","inReplyTo":"1b46aba20708101216s7660741ds5ef4c4c0fd13b45c@mail.gmail.com","subject":"Re: [PATCH 2/2] tweak manpage formatting","fromName":"Brian Gernhardt","fromEmail":"benji@silverinsanity.com","sentAt":"2007-08-10T19:32:07Z","receivedAt":"2007-08-10T19:32:07Z","isPatch":true,"sender":{"key":"benji@silverinsanity.com","avatar":"https://gravatar.com/avatar/e06c101dbc25c68114d859b4a9ec7cf8a2c52fd2b0270ef0eac0e2e63ff22311?d=mp&s=160"},"body":"\nOn Aug 10, 2007, at 3:16 PM, Carlos Rica wrote:\n\n> I think this was because the end-of-line backslash \"\\\" in the ASCII\n> art diagram in the Documentation/git-rev-parse.txt.\n\nNo, it was complaining about unknown \"man.indent.width\" in  \ncallout.xsl.  Apparently docbook-xsl 1.69 doesn't like that.   \nUpdating it to 1.71 made it work again.  I lost the original error  \nwhile updating before sending the first mail, unfortunately.  If it's  \ntruly needed, I probably still have the 1.69 deb file on my computer  \nsomewhere.\n\n~~ Brian\n"}]}