Skip to content

Commit

Permalink
Documentation: move "spurious .sp" code into manpage-base.xsl
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
ChrisJohnsen authored and gitster committed Mar 27, 2009
1 parent 9d8d13a commit 34c800b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
13 changes: 13 additions & 0 deletions Documentation/manpage-base.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -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>
13 changes: 0 additions & 13 deletions Documentation/manpage-normal.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -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>

0 comments on commit 34c800b

Please sign in to comment.