mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
Add required empty fields on CSV export
We need to have empty field printed for every value on the CSV export. Hopefully this is enough. Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
9e2e62ec4f
commit
c00a5614f3
1 changed files with 20 additions and 2 deletions
|
@ -31,13 +31,31 @@
|
|||
<xsl:text>"</xsl:text>
|
||||
<xsl:value-of select="@duration"/>
|
||||
<xsl:text>"</xsl:text>
|
||||
<xsl:apply-templates select="divecomputer[1]/depth"/>
|
||||
<xsl:choose>
|
||||
<xsl:when test="divecomputer[1]/depth != ''">
|
||||
<xsl:apply-templates select="divecomputer[1]/depth"/>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:value-of select="$fs"/>
|
||||
<xsl:text>""</xsl:text>
|
||||
<xsl:value-of select="$fs"/>
|
||||
<xsl:text>""</xsl:text>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
<xsl:choose>
|
||||
<xsl:when test="divetemperature/@air|divetemperature/@water != ''">
|
||||
<xsl:apply-templates select="divetemperature"/>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:when test="divecomputer[1]/temperature != ''">
|
||||
<xsl:apply-templates select="divecomputer[1]/temperature"/>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<!-- empty air temperature -->
|
||||
<xsl:value-of select="$fs"/>
|
||||
<xsl:text>""</xsl:text>
|
||||
<!-- water temperature -->
|
||||
<xsl:value-of select="$fs"/>
|
||||
<xsl:text>""</xsl:text>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
<xsl:choose>
|
||||
|
|
Loading…
Reference in a new issue