Gentoo Archives: gentoo-commits

From: "Ulrich Müller" <ulm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/devmanual:master commit in: /
Date: Thu, 02 Jan 2020 12:55:03
Message-Id: 1577968861.b5bfc69fab686a49e6fbf54aceae2bb12885dc5a.ulm@gentoo
1 commit: b5bfc69fab686a49e6fbf54aceae2bb12885dc5a
2 Author: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
3 AuthorDate: Sun Apr 28 16:51:57 2019 +0000
4 Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
5 CommitDate: Thu Jan 2 12:41:01 2020 +0000
6 URL: https://gitweb.gentoo.org/proj/devmanual.git/commit/?id=b5bfc69f
7
8 devbook.xsl: strip leading/trailing whitespace from header identifiers.
9
10 We were already replacing spaces *within* these identifiers, so we
11 don't have to worry about that.
12
13 Bug: https://bugs.gentoo.org/626032
14 Signed-off-by: Michael Orlitzky <mjo <AT> gentoo.org>
15 Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>
16
17 devbook.xsl | 2 +-
18 1 file changed, 1 insertion(+), 1 deletion(-)
19
20 diff --git a/devbook.xsl b/devbook.xsl
21 index a8a11f1..ae0313c 100644
22 --- a/devbook.xsl
23 +++ b/devbook.xsl
24 @@ -282,7 +282,7 @@
25 <xsl:param name="data"/>
26 <xsl:variable name="lcletters">abcdefghijklmnopqrstuvwxyz--</xsl:variable>
27 <xsl:variable name="ucletters">ABCDEFGHIJKLMNOPQRSTUVWXYZ<xsl:text> </xsl:text>,</xsl:variable>
28 - <xsl:value-of select="translate($data,$ucletters,$lcletters)"/>
29 + <xsl:value-of select="translate(normalize-space($data),$ucletters,$lcletters)"/>
30 </xsl:template>
31
32 <xsl:template match="uri">