mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
CSV export: include SAC when exporting dive details
Simply adds SAC field to CSV export of dive details. Fixes #2829 Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
This commit is contained in:
parent
3e2a410f93
commit
0525f31510
1 changed files with 15 additions and 0 deletions
|
@ -22,6 +22,8 @@
|
|||
$fs,
|
||||
'"duration (min)"',
|
||||
$fs,
|
||||
'"sac (cuft/min)"',
|
||||
$fs,
|
||||
'"maxdepth (ft)"',
|
||||
$fs,
|
||||
'"avgdepth (ft)"',
|
||||
|
@ -72,6 +74,8 @@
|
|||
$fs,
|
||||
'"duration (min)"',
|
||||
$fs,
|
||||
'"sac (l/min)"',
|
||||
$fs,
|
||||
'"maxdepth (m)"',
|
||||
$fs,
|
||||
'"avgdepth (m)"',
|
||||
|
@ -136,6 +140,17 @@
|
|||
<xsl:text>"</xsl:text>
|
||||
<xsl:value-of select="substring-before(@duration, ' ')"/>
|
||||
<xsl:text>"</xsl:text>
|
||||
<xsl:value-of select="$fs"/>
|
||||
<xsl:text>"</xsl:text>
|
||||
<xsl:choose>
|
||||
<xsl:when test="$units = 1">
|
||||
<xsl:value-of select="format-number(substring-before(@sac, ' ') * 0.035315, '#.##')"/>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:value-of select="substring-before(@sac, ' ')"/>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
<xsl:text>"</xsl:text>
|
||||
<xsl:choose>
|
||||
<xsl:when test="divecomputer[1]/depth/@mean|divecomputer[1]/depth/@max != ''">
|
||||
<xsl:apply-templates select="divecomputer[1]/depth"/>
|
||||
|
|
Loading…
Reference in a new issue