aboutsummaryrefslogtreecommitdiff
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-20 13:43:03 -0800
commitec722203ee43beed8e4feac84af4307eb68f1ba3 (patch)
tree2239628899517cd43c7b67bcc2dc5f379469a062
parent851a911024481f6759bce337b8dc50241070db81 (diff)
downloadgit-ec722203ee43beed8e4feac84af4307eb68f1ba3.tar.gz
git-ec722203ee43beed8e4feac84af4307eb68f1ba3.tar.xz
spurious .sp in manpages
This cherry-picks 7ef04350 that has been applied to the 'master' to fix ".sp" in generated manpages. 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 ad03755d8..6a361a213 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>