threads / discuss / 43672

Re: spurious .sp in manpages

Subject: Re: spurious .sp in manpages

## tl;dr

2 messages between Dec 13, 2006 and Dec 13, 2006.

replies: 1people: 2as markdown or json

Junio C Hamano· Dec 13, 2006, 08:58 UTC · lore

spurious .sp in manpages

This is just a random hack to work around problems people seem to be seeing in manpage backend of xmlto (it appears we are getting ".sp" at the end of line without line break).

Could people test this out?
---
diff --git a/Documentation/callouts.xsl b/Documentation/callouts.xsl
index ad03755..6a361a2 100644
--- a/Documentation/callouts.xsl
+++ b/Documentation/callouts.xsl
@@ -13,4 +13,18 @@
 	<xsl:apply-templates/>
 	<xsl:text>.br&#10;</xsl:text>
 </xsl:template>
+
+<!-- sorry, this is not about callouts, but attempts to work around
+ spurious .sp at the tail of the line docbook stylesheets seem to add -->
+<xsl:template match="simpara">
+  <xsl:variable name="content">
+    <xsl:apply-templates/>
+  </xsl:variable>
+  <xsl:value-of select="normalize-space($content)"/>
+  <xsl:if test="not(ancestor::authorblurb) and
+                not(ancestor::personblurb)">
+    <xsl:text>&#10;&#10;</xsl:text>
+  </xsl:if>
+</xsl:template>
+
 </xsl:stylesheet>
Gerrit Pape· Dec 13, 2006, 10:17 UTC · re: Junio C Hamano · lore
On Wed, Dec 13, 2006 at 12:58:28AM -0800, Junio C Hamano wrote:
Show 5 quoted lines
> This is just a random hack to work around problems people seem
> to be seeing in manpage backend of xmlto (it appears we are
> getting ".sp" at the end of line without line break).
> 
> Could people test this out?
The workaround works fine for me on Debian/unstable.

← back to recent threads