diff options
author | Miika Turkia <miika.turkia@gmail.com> | 2017-03-14 08:07:48 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-04-01 08:06:09 -0700 |
commit | 4ced7c3f73edd3361ec72805add3d7da0550725d (patch) | |
tree | 92913e589daaa0ed06eb7a8dd5fe84b8c3c208cf /xslt | |
parent | 841d1b4fac6c08090c4d9951ce7c4a1dffb8ef45 (diff) | |
download | subsurface-4ced7c3f73edd3361ec72805add3d7da0550725d.tar.gz |
Fix size conversion on imperial CSV import
We really need the decimal separator to get correct results
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
Diffstat (limited to 'xslt')
-rw-r--r-- | xslt/manualcsv2xml.xslt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xslt/manualcsv2xml.xslt b/xslt/manualcsv2xml.xslt index a0a73273f..e5f60c3b9 100644 --- a/xslt/manualcsv2xml.xslt +++ b/xslt/manualcsv2xml.xslt @@ -282,7 +282,7 @@ <xsl:value-of select="$size"/> </xsl:when> <xsl:otherwise> - <xsl:value-of select="format-number((translate($size, translate($size, '0123456789', ''), '') * 14.7 div 3000) div 0.035315, '#.#')"/> + <xsl:value-of select="format-number((translate($size, translate($size, '0123456789.,', ''), '') * 14.7 div 3000) div 0.035315, '#.#')"/> </xsl:otherwise> </xsl:choose> </xsl:attribute> |