summaryrefslogtreecommitdiffstats
path: root/xslt
diff options
context:
space:
mode:
authorGravatar Miika Turkia <miika.turkia@gmail.com>2017-03-30 07:05:51 +0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-04-01 08:06:09 -0700
commit78904b74b1de6f5c98cb06bcceb56d731fe46e86 (patch)
treee1c72fa872ee5b1ba3dd366516413710bf1b5f51 /xslt
parent0a84c6e6934bda991a68c42952320977ceaebf78 (diff)
downloadsubsurface-78904b74b1de6f5c98cb06bcceb56d731fe46e86.tar.gz
Fix imperial unit conversion on CSV import
Math only takes numbers, need to ignore the ft part. Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
Diffstat (limited to 'xslt')
-rw-r--r--xslt/csv2xml.xslt2
1 files changed, 1 insertions, 1 deletions
diff --git a/xslt/csv2xml.xslt b/xslt/csv2xml.xslt
index bbd2b14d6..baff08f17 100644
--- a/xslt/csv2xml.xslt
+++ b/xslt/csv2xml.xslt
@@ -275,7 +275,7 @@
<xsl:value-of select="translate($depth, ',', '.')"/>
</xsl:when>
<xsl:otherwise>
- <xsl:value-of select="translate($depth, ',', '.') * 0.3048"/>
+ <xsl:value-of select="translate(translate($depth, translate($depth, '0123456789,.', ''), ''), ',', '.') * 0.3048"/>
</xsl:otherwise>
</xsl:choose>
</xsl:attribute>