summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-12-13 00:58:28 -0800
committerJunio C Hamano <junkio@cox.net>2006-12-13 09:41:18 -0800
commit7ef0435088f41165ece95b6f226d3c15438505a5 (patch)
tree9c0ad1c20da72d8ee827e37697184a00dae99978
parent0c4e95d083f77de03a64b65f5633ed0ba082a26e (diff)
downloadgit-7ef0435088f41165ece95b6f226d3c15438505a5.tar.gz
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>
-rw-r--r--Documentation/callouts.xsl14
1 files changed, 14 insertions, 0 deletions
diff --git a/Documentation/callouts.xsl b/Documentation/callouts.xsl
index ad03755d8f..6a361a2136 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>