{"thread":{"id":"43672","subject":"Re: spurious .sp in manpages","startedAt":"2006-12-13T08:58:28Z","lastAt":"2006-12-13T10:17:28Z","messageCount":2,"participants":["Gerrit Pape","Junio C Hamano"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"297160","messageId":"7vodq8kw97.fsf@assigned-by-dhcp.cox.net","threadId":"43672","inReplyTo":null,"subject":"spurious .sp in manpages","fromName":"Junio C Hamano","fromEmail":"junkio@cox.net","sentAt":"2006-12-13T08:58:28Z","receivedAt":"2006-12-13T08:58:28Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"This is just a random hack to work around problems people seem\nto be seeing in manpage backend of xmlto (it appears we are\ngetting \".sp\" at the end of line without line break).\n\nCould people test this out?\n\n---\n\ndiff --git a/Documentation/callouts.xsl b/Documentation/callouts.xsl\nindex ad03755..6a361a2 100644\n--- a/Documentation/callouts.xsl\n+++ b/Documentation/callouts.xsl\n@@ -13,4 +13,18 @@\n \t<xsl:apply-templates/>\n \t<xsl:text>.br&#10;</xsl:text>\n </xsl:template>\n+\n+<!-- sorry, this is not about callouts, but attempts to work around\n+ spurious .sp at the tail of the line docbook stylesheets seem to add -->\n+<xsl:template match=\"simpara\">\n+  <xsl:variable name=\"content\">\n+    <xsl:apply-templates/>\n+  </xsl:variable>\n+  <xsl:value-of select=\"normalize-space($content)\"/>\n+  <xsl:if test=\"not(ancestor::authorblurb) and\n+                not(ancestor::personblurb)\">\n+    <xsl:text>&#10;&#10;</xsl:text>\n+  </xsl:if>\n+</xsl:template>\n+\n </xsl:stylesheet>\n"},{"id":"296558","messageId":"20061213101728.18138.qmail@017513e6f43450.315fe32.mid.smarden.org","threadId":"43672","inReplyTo":"7vodq8kw97.fsf@assigned-by-dhcp.cox.net","subject":"Re: spurious .sp in manpages","fromName":"Gerrit Pape","fromEmail":"pape@smarden.org","sentAt":"2006-12-13T10:17:28Z","receivedAt":"2006-12-13T10:17:28Z","isPatch":false,"sender":{"key":"pape@smarden.org","avatar":"https://avatars.githubusercontent.com/u/143170252?v=4"},"body":"On Wed, Dec 13, 2006 at 12:58:28AM -0800, Junio C Hamano wrote:\n> This is just a random hack to work around problems people seem\n> to be seeing in manpage backend of xmlto (it appears we are\n> getting \".sp\" at the end of line without line break).\n> \n> Could people test this out?\n\nThe workaround works fine for me on Debian/unstable.\n\n"}]}