mirror of
https://github.com/git/git.git
synced 2024-11-19 14:53:50 +01:00
ae8d09b8fa
Parametrize the backslash and dot characters that are used to generate roff control sequences in manpage-base.xsl. 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>
27 lines
904 B
XML
27 lines
904 B
XML
<!-- manpage-normal.xsl:
|
|
special settings for manpages rendered from asciidoc+docbook
|
|
handles anything we want to keep away from docbook-xsl 1.72.0 -->
|
|
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
|
version="1.0">
|
|
|
|
<xsl:import href="manpage-base.xsl"/>
|
|
|
|
<!-- these are the normal values for the roff control characters -->
|
|
<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> </xsl:text>
|
|
</xsl:if>
|
|
</xsl:template>
|
|
|
|
</xsl:stylesheet>
|