diff options
author | Junio C Hamano <junkio@cox.net> | 2006-12-13 00:58:28 -0800 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-12-20 13:43:03 -0800 |
commit | ec722203ee43beed8e4feac84af4307eb68f1ba3 (patch) | |
tree | 2239628899517cd43c7b67bcc2dc5f379469a062 | |
parent | 851a911024481f6759bce337b8dc50241070db81 (diff) | |
download | git-ec722203ee43beed8e4feac84af4307eb68f1ba3.tar.gz |
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.xsl | 14 |
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 </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> </xsl:text> + </xsl:if> +</xsl:template> + </xsl:stylesheet> |