提交 cd1f4db4 编写于 作者: P Peter Eisentraut

Untabify DSSSL and XSL files and add to check-tabs target

Like with SGML files, using tabs in these files is confusing and
unnecessary.
上级 293ec33c
...@@ -357,7 +357,7 @@ endif # sqlmansectnum != 7 ...@@ -357,7 +357,7 @@ endif # sqlmansectnum != 7
# tabs are harmless, but it is best to avoid them in SGML files # tabs are harmless, but it is best to avoid them in SGML files
check-tabs: check-tabs:
@( ! grep ' ' $(wildcard $(srcdir)/*.sgml $(srcdir)/ref/*.sgml) ) || (echo "Tabs appear in SGML files"; exit 1) @( ! grep ' ' $(wildcard $(srcdir)/*.sgml $(srcdir)/ref/*.sgml $(srcdir)/*.dsl $(srcdir)/*.xsl) ) || (echo "Tabs appear in SGML/XML files" 1>&2; exit 1)
## ##
## Clean ## Clean
......
<?xml version='1.0'?> <?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:exsl="http://exslt.org/common" xmlns:exsl="http://exslt.org/common"
version='1.0' version='1.0'
exclude-result-prefixes="exsl"> exclude-result-prefixes="exsl">
...@@ -58,16 +58,16 @@ ...@@ -58,16 +58,16 @@
<xsl:otherwise> <xsl:otherwise>
<xsl:choose> <xsl:choose>
<xsl:when test="refmeta/refentrytitle"> <xsl:when test="refmeta/refentrytitle">
<xsl:call-template name="bold"> <xsl:call-template name="bold">
<xsl:with-param name="node" select="refmeta/refentrytitle"/> <xsl:with-param name="node" select="refmeta/refentrytitle"/>
<xsl:with-param name="context" select="."/> <xsl:with-param name="context" select="."/>
</xsl:call-template> </xsl:call-template>
</xsl:when> </xsl:when>
<xsl:otherwise> <xsl:otherwise>
<xsl:call-template name="bold"> <xsl:call-template name="bold">
<xsl:with-param name="node" select="refnamediv/refname[1]"/> <xsl:with-param name="node" select="refnamediv/refname[1]"/>
<xsl:with-param name="context" select="."/> <xsl:with-param name="context" select="."/>
</xsl:call-template> </xsl:call-template>
</xsl:otherwise> </xsl:otherwise>
</xsl:choose> </xsl:choose>
<xsl:apply-templates select="refmeta/manvolnum"/> <xsl:apply-templates select="refmeta/manvolnum"/>
...@@ -143,14 +143,14 @@ ...@@ -143,14 +143,14 @@
<xsl:with-param name="message-prolog">Note: </xsl:with-param> <xsl:with-param name="message-prolog">Note: </xsl:with-param>
<xsl:with-param name="message-epilog"> (soelim stub)</xsl:with-param> <xsl:with-param name="message-epilog"> (soelim stub)</xsl:with-param>
<xsl:with-param name="content"> <xsl:with-param name="content">
<xsl:choose> <xsl:choose>
<xsl:when test="$man.output.in.separate.dir = 0"> <xsl:when test="$man.output.in.separate.dir = 0">
<xsl:value-of select="concat('.so man', $section, '/')"/> <xsl:value-of select="concat('.so man', $section, '/')"/>
</xsl:when> </xsl:when>
<xsl:otherwise> <xsl:otherwise>
<xsl:value-of select="'.so '"/> <!-- added case --> <xsl:value-of select="'.so '"/> <!-- added case -->
</xsl:otherwise> </xsl:otherwise>
</xsl:choose> </xsl:choose>
<xsl:call-template name="make.adjusted.man.filename"> <xsl:call-template name="make.adjusted.man.filename">
<xsl:with-param name="name" select="$first.refname"/> <xsl:with-param name="name" select="$first.refname"/>
<xsl:with-param name="section" select="$section"/> <xsl:with-param name="section" select="$section"/>
......
此差异已折叠。
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册