diff options
author | Miika Turkia <miika.turkia@gmail.com> | 2013-03-06 19:11:19 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-03-07 10:27:20 -0800 |
commit | a9cc7f9b10017d2fe3d95bf19d1e9c2389631ef9 (patch) | |
tree | ca8b41c48bc42461cd65de1c0052aab15354e37c /xslt/DivingLog.xslt | |
parent | 2120bc3a9e1729b3d7374725260f5e8603d9fa4f (diff) | |
download | subsurface-a9cc7f9b10017d2fe3d95bf19d1e9c2389631ef9.tar.gz |
Fix import when locale set to decimal comma
This should take care of locale caused problems when the input uses decimal
point but locale uses decimal comma. Also the sample I have of Suunto DM3
format weight is represented with comma instead of dot so converting that as
well.
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'xslt/DivingLog.xslt')
-rw-r--r-- | xslt/DivingLog.xslt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xslt/DivingLog.xslt b/xslt/DivingLog.xslt index 9c17f2c74..91c5d502e 100644 --- a/xslt/DivingLog.xslt +++ b/xslt/DivingLog.xslt @@ -97,7 +97,7 @@ <xsl:value-of select="Tanksize"/> </xsl:when> <xsl:otherwise> - <xsl:value-of select="Tanksize * 2"/> + <xsl:value-of select="format-number(Tanksize * 2, '#.##')"/> </xsl:otherwise> </xsl:choose> </xsl:attribute> |