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? Signed-off-by: Junio C Hamano <junkio@cox.net>
Junio C Hamano committed
Dec 13, 2006 at 00:58 UTC
7ef0435088f41165ece95b6f226d3c15438505a5
1 file changed
+14
Documentation/callouts.xsl
+14
@@ -13,4 +13,18 @@
13
<xsl:apply-templates/>
14
<xsl:text>.br </xsl:text>
15
</xsl:template>
16
+
17
+<!-- sorry, this is not about callouts, but attempts to work around
18
+ spurious .sp at the tail of the line docbook stylesheets seem to add -->
19
+<xsl:template match="simpara">
20
+ <xsl:variable name="content">
21
+ <xsl:apply-templates/>
22
+ </xsl:variable>
23
+ <xsl:value-of select="normalize-space($content)"/>
24
+ <xsl:if test="not(ancestor::authorblurb) and
25
+ not(ancestor::personblurb)">
26
+ <xsl:text> </xsl:text>
27
+ </xsl:if>
28
+</xsl:template>
29
+
30
</xsl:stylesheet>