# Re: spurious .sp in manpages

2 messages from 2006-12-13 to 2006-12-13. Participants: Gerrit Pape, Junio C Hamano.
Thread: https://gitlist.dev/t/43672

## Junio C Hamano, 2006-12-13 08:58

Subject: spurious .sp in manpages
Message-ID: <7vodq8kw97.fsf@assigned-by-dhcp.cox.net>
URL: https://gitlist.dev/e/7vodq8kw97.fsf%40assigned-by-dhcp.cox.net

```
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, 2006-12-13 10:17

Subject: Re: spurious .sp in manpages
Message-ID: <20061213101728.18138.qmail@017513e6f43450.315fe32.mid.smarden.org>
URL: https://gitlist.dev/e/20061213101728.18138.qmail%40017513e6f43450.315fe32.mid.smarden.org
In-Reply-To: <7vodq8kw97.fsf@assigned-by-dhcp.cox.net>

```
On Wed, Dec 13, 2006 at 12:58:28AM -0800, Junio C Hamano wrote:
> 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.


```
