Skip to content

Commit 34c800b

Browse files
ChrisJohnsengitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 9d8d13a commit 34c800b

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

Documentation/manpage-base.xsl

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,17 @@
3232
<xsl:text>br&#10;</xsl:text>
3333
</xsl:template>
3434

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+
3548
</xsl:stylesheet>

Documentation/manpage-normal.xsl

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,4 @@
1010
<xsl:param name="git.docbook.backslash">\</xsl:param>
1111
<xsl:param name="git.docbook.dot" >.</xsl:param>
1212

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-
2613
</xsl:stylesheet>

0 commit comments

Comments
 (0)