mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
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>
This commit is contained in:
parent
f8360eeddd
commit
006e00ebc4
1 changed files with 1 additions and 1 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue