Skip to content

Commit cd1f4db

Browse files
committed
Untabify DSSSL and XSL files and add to check-tabs target
Like with SGML files, using tabs in these files is confusing and unnecessary.
1 parent 293ec33 commit cd1f4db

File tree

3 files changed

+287
-287
lines changed

3 files changed

+287
-287
lines changed

doc/src/sgml/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ endif # sqlmansectnum != 7
357357

358358
# tabs are harmless, but it is best to avoid them in SGML files
359359
check-tabs:
360-
@( ! grep ' ' $(wildcard $(srcdir)/*.sgml $(srcdir)/ref/*.sgml) ) || (echo "Tabs appear in SGML files"; exit 1)
360+
@( ! grep ' ' $(wildcard $(srcdir)/*.sgml $(srcdir)/ref/*.sgml $(srcdir)/*.dsl $(srcdir)/*.xsl) ) || (echo "Tabs appear in SGML/XML files" 1>&2; exit 1)
361361

362362
##
363363
## Clean

doc/src/sgml/stylesheet-man.xsl

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version='1.0'?>
22
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
3-
xmlns:exsl="http://exslt.org/common"
3+
xmlns:exsl="http://exslt.org/common"
44
version='1.0'
55
exclude-result-prefixes="exsl">
66

@@ -58,16 +58,16 @@
5858
<xsl:otherwise>
5959
<xsl:choose>
6060
<xsl:when test="refmeta/refentrytitle">
61-
<xsl:call-template name="bold">
62-
<xsl:with-param name="node" select="refmeta/refentrytitle"/>
63-
<xsl:with-param name="context" select="."/>
64-
</xsl:call-template>
61+
<xsl:call-template name="bold">
62+
<xsl:with-param name="node" select="refmeta/refentrytitle"/>
63+
<xsl:with-param name="context" select="."/>
64+
</xsl:call-template>
6565
</xsl:when>
6666
<xsl:otherwise>
67-
<xsl:call-template name="bold">
68-
<xsl:with-param name="node" select="refnamediv/refname[1]"/>
69-
<xsl:with-param name="context" select="."/>
70-
</xsl:call-template>
67+
<xsl:call-template name="bold">
68+
<xsl:with-param name="node" select="refnamediv/refname[1]"/>
69+
<xsl:with-param name="context" select="."/>
70+
</xsl:call-template>
7171
</xsl:otherwise>
7272
</xsl:choose>
7373
<xsl:apply-templates select="refmeta/manvolnum"/>
@@ -143,14 +143,14 @@
143143
<xsl:with-param name="message-prolog">Note: </xsl:with-param>
144144
<xsl:with-param name="message-epilog"> (soelim stub)</xsl:with-param>
145145
<xsl:with-param name="content">
146-
<xsl:choose>
147-
<xsl:when test="$man.output.in.separate.dir = 0">
148-
<xsl:value-of select="concat('.so man', $section, '/')"/>
149-
</xsl:when>
150-
<xsl:otherwise>
151-
<xsl:value-of select="'.so '"/> <!-- added case -->
152-
</xsl:otherwise>
153-
</xsl:choose>
146+
<xsl:choose>
147+
<xsl:when test="$man.output.in.separate.dir = 0">
148+
<xsl:value-of select="concat('.so man', $section, '/')"/>
149+
</xsl:when>
150+
<xsl:otherwise>
151+
<xsl:value-of select="'.so '"/> <!-- added case -->
152+
</xsl:otherwise>
153+
</xsl:choose>
154154
<xsl:call-template name="make.adjusted.man.filename">
155155
<xsl:with-param name="name" select="$first.refname"/>
156156
<xsl:with-param name="section" select="$section"/>

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy