summaryrefslogtreecommitdiffstats
path: root/xslt
diff options
context:
space:
mode:
authorGravatar Miika Turkia <miika.turkia@gmail.com>2018-02-15 06:28:21 +0200
committerGravatar mturkia <miika.turkia@gmail.com>2018-02-15 17:54:05 +0200
commit006e00ebc44c7698104795c22b963d00f664ef84 (patch)
tree00bc964d212fa7f5e4b9a4fa15d37c17b30806b5 /xslt
parentf8360eedddeb711e2fe476f1b5d94724e7838d51 (diff)
downloadsubsurface-006e00ebc44c7698104795c22b963d00f664ef84.tar.gz
Case insensitive string comparison for units
Not really surprising, but a sample log that I received used different case for unit than I had expected. Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
Diffstat (limited to 'xslt')
-rw-r--r--xslt/udcf.xslt2
1 files changed, 1 insertions, 1 deletions
diff --git a/xslt/udcf.xslt b/xslt/udcf.xslt
index 9f617bba2..b39d0267a 100644
--- a/xslt/udcf.xslt
+++ b/xslt/udcf.xslt
@@ -33,7 +33,7 @@
<xsl:template match="DIVE|dive">
<xsl:variable name="units">
<xsl:choose>
- <xsl:when test="//units|//UNITS = 'imperial'">
+ <xsl:when test="translate(//units|//UNITS, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz') = 'imperial'">
<xsl:value-of select="'Imperial'"/>
</xsl:when>
<xsl:otherwise>