mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
CSV export: Correct numeric format for depth
Add two missing format-number functions for mean depth in dive list export and depth in dive profile export. Signed-off-by: Stefan Fuchs <sfuchs@gmx.de>
This commit is contained in:
parent
fc01045680
commit
46f1fea1b6
2 changed files with 3 additions and 3 deletions
|
@ -41,10 +41,10 @@
|
|||
<xsl:value-of select="$fs"/>
|
||||
<xsl:choose>
|
||||
<xsl:when test="$units = 1">
|
||||
<xsl:value-of select="concat('"', round((substring-before(@depth, ' ') div 0.3048) * 1000) div 1000, '"')"/>
|
||||
<xsl:value-of select="concat('"', format-number(substring-before(@depth, ' ') div 0.3048, '#.###'), '"')"/>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:value-of select="concat('"', round(substring-before(@depth, ' ') * 1000) div 1000, '"')"/>
|
||||
<xsl:value-of select="concat('"', format-number(substring-before(@depth, ' '), '#.###'), '"')"/>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
|
||||
|
|
|
@ -241,7 +241,7 @@
|
|||
<xsl:value-of select="concat(format-number((substring-before(@mean, ' ') div 0.3048), '#.##'), '')"/>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:value-of select="substring-before(@mean, ' ')"/>
|
||||
<xsl:value-of select="format-number(substring-before(@mean, ' '), '#.##')"/>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
<xsl:text>"</xsl:text>
|
||||
|
|
Loading…
Reference in a new issue