@matheusbsbs / matheus-bagliano / commits / 34c800b8fc
Fork 0

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>

Chris Johnsen committed Mar 27, 2009 at 01:44 UTC 34c800b8fcbd85c276cb102b3e60d170aa9e55e0
2 files changed +13 -13
Documentation/manpage-base.xsl
+13
@@ -32,4 +32,17 @@
32 <xsl:text>br&#10;</xsl:text>
33 </xsl:template>
34
35 +<!-- attempt to work around spurious .sp at the tail of the line
36 + that docbook stylesheets seem to add -->
37 +<xsl:template match="simpara">
38 + <xsl:variable name="content">
39 + <xsl:apply-templates/>
40 + </xsl:variable>
41 + <xsl:value-of select="normalize-space($content)"/>
42 + <xsl:if test="not(ancestor::authorblurb) and
43 + not(ancestor::personblurb)">
44 + <xsl:text>&#10;&#10;</xsl:text>
45 + </xsl:if>
46 +</xsl:template>
47 +
48 </xsl:stylesheet>
Documentation/manpage-normal.xsl
-13
@@ -10,17 +10,4 @@
10 <xsl:param name="git.docbook.backslash">\</xsl:param>
11 <xsl:param name="git.docbook.dot" >.</xsl:param>
12
13 -<!-- attempt to work around spurious .sp at the tail of the line
14 - that docbook stylesheets seem to add -->
15 -<xsl:template match="simpara">
16 - <xsl:variable name="content">
17 - <xsl:apply-templates/>
18 - </xsl:variable>
19 - <xsl:value-of select="normalize-space($content)"/>
20 - <xsl:if test="not(ancestor::authorblurb) and
21 - not(ancestor::personblurb)">
22 - <xsl:text>&#10;&#10;</xsl:text>
23 - </xsl:if>
24 -</xsl:template>
25 -
13 </xsl:stylesheet>