summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Johnsen <chris_johnsen@pobox.com>2009-03-27 06:44:02 (GMT)
committerJunio C Hamano <gitster@pobox.com>2009-03-27 07:33:19 (GMT)
commit34c800b8fcbd85c276cb102b3e60d170aa9e55e0 (patch)
tree9649535c37428626c905d877a54dd304608c999f
parent9d8d13a8c52c55ad4695b659cbffa61e4c3a3774 (diff)
downloadgit-34c800b8fcbd85c276cb102b3e60d170aa9e55e0.zip
git-34c800b8fcbd85c276cb102b3e60d170aa9e55e0.tar.gz
git-34c800b8fcbd85c276cb102b3e60d170aa9e55e0.tar.bz2
Documentation: move "spurious .sp" code into manpage-base.xsl
The "spurious .sp" code should be independent of docbook-xsl versions. Testing done with asciidoc 8.3.1 and docbook-xsl 1.74.0. Signed-off-by: Chris Johnsen <chris_johnsen@pobox.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r--Documentation/manpage-base.xsl13
-rw-r--r--Documentation/manpage-normal.xsl13
2 files changed, 13 insertions, 13 deletions
diff --git a/Documentation/manpage-base.xsl b/Documentation/manpage-base.xsl
index a264fa6..16e2e40 100644
--- a/Documentation/manpage-base.xsl
+++ b/Documentation/manpage-base.xsl
@@ -32,4 +32,17 @@
<xsl:text>br&#10;</xsl:text>
</xsl:template>
+<!-- attempt to work around spurious .sp at the tail of the line
+ that 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>
diff --git a/Documentation/manpage-normal.xsl b/Documentation/manpage-normal.xsl
index e36472f..a48f5b1 100644
--- a/Documentation/manpage-normal.xsl
+++ b/Documentation/manpage-normal.xsl
@@ -10,17 +10,4 @@
<xsl:param name="git.docbook.backslash">\</xsl:param>
<xsl:param name="git.docbook.dot" >.</xsl:param>
-<!-- attempt to work around spurious .sp at the tail of the line
- that 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>