Code

Documentation: move "spurious .sp" code into manpage-base.xsl
authorChris Johnsen <chris_johnsen@pobox.com>
Fri, 27 Mar 2009 06:44:02 +0000 (01:44 -0500)
committerJunio C Hamano <gitster@pobox.com>
Fri, 27 Mar 2009 07:33:19 +0000 (00:33 -0700)
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>
Documentation/manpage-base.xsl
Documentation/manpage-normal.xsl

index a264fa616093cf4e28a1080dd76747b008859e19..16e2e4097638a49a758c9c198106005822f679e2 100644 (file)
        <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>
index e36472f5ad45d210c0ba8bf242fda9c439f46c84..a48f5b11f3dcc9227131d3a5caf1de4f857f0b28 100644 (file)
 <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>