diff options
author | Miika Turkia <miika.turkia@gmail.com> | 2017-07-12 20:03:59 +0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-07-15 14:44:07 +0900 |
commit | 8f61dfe8123105e052ce4cab0ccedf425cd35928 (patch) | |
tree | 7bd5b197ea31336c929e92929326f617515cde4c /xslt | |
parent | 24614a989f6ad887f5cad9f610fae602593f2333 (diff) | |
download | subsurface-8f61dfe8123105e052ce4cab0ccedf425cd35928.tar.gz |
Fix CSV export for imperial start and end pressure
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
Diffstat (limited to 'xslt')
-rw-r--r-- | xslt/xml2manualcsv.xslt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xslt/xml2manualcsv.xslt b/xslt/xml2manualcsv.xslt index e240d3123..242332756 100644 --- a/xslt/xml2manualcsv.xslt +++ b/xslt/xml2manualcsv.xslt @@ -90,7 +90,7 @@ <xsl:choose> <xsl:when test="$units = 1"> <xsl:choose> - <xsl:when test="divecomputer[1]/sample[@pressure]/@pressure > 0"> + <xsl:when test="substring-before(divecomputer[1]/sample[@pressure]/@pressure, ' ') > 0"> <xsl:value-of select="concat(format-number((substring-before(divecomputer[1]/sample[@pressure]/@pressure, ' ') * 14.5037738007), '#'), '')"/> </xsl:when> <xsl:otherwise> @@ -108,7 +108,7 @@ <xsl:choose> <xsl:when test="$units = 1"> <xsl:choose> - <xsl:when test="divecomputer[1]/sample[@pressure][last()]/@pressure > 0"> + <xsl:when test="substring-before(divecomputer[1]/sample[@pressure][last()]/@pressure, ' ') > 0"> <xsl:value-of select="concat(format-number((substring-before(divecomputer[1]/sample[@pressure][last()]/@pressure, ' ') * 14.5037738007), '#'), '')"/> </xsl:when> <xsl:otherwise> |