summaryrefslogtreecommitdiffstats
path: root/xslt/divelogs.xslt
diff options
context:
space:
mode:
authorGravatar Miika Turkia <miika.turkia@gmail.com>2013-03-06 19:11:19 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-03-07 10:27:20 -0800
commita9cc7f9b10017d2fe3d95bf19d1e9c2389631ef9 (patch)
treeca8b41c48bc42461cd65de1c0052aab15354e37c /xslt/divelogs.xslt
parent2120bc3a9e1729b3d7374725260f5e8603d9fa4f (diff)
downloadsubsurface-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/divelogs.xslt')
-rw-r--r--xslt/divelogs.xslt2
1 files changed, 1 insertions, 1 deletions
diff --git a/xslt/divelogs.xslt b/xslt/divelogs.xslt
index 879fd3d32..3855c1552 100644
--- a/xslt/divelogs.xslt
+++ b/xslt/divelogs.xslt
@@ -94,7 +94,7 @@
</xsl:attribute>
<xsl:if test="CYLINDERSIZE != ''">
<xsl:attribute name="size">
- <xsl:value-of select="CYLINDERSIZE + CYLINDERSIZE * DBLTANK"/>
+ <xsl:value-of select="format-number(CYLINDERSIZE + CYLINDERSIZE * DBLTANK, '#.##')"/>
</xsl:attribute>
</xsl:if>
<xsl:if test="WORKINGPRESSURE &gt; 0">