Changeset 8f61dfe in subsurface


Ignore:
Timestamp:
Jul 14, 2017, 10:44:07 PM (3 months ago)
Author:
Dirk Hohndel <dirk@…>
Branches:
master
Children:
7f49ba7
Parents:
24614a98
git-author:
Miika Turkia <miika.turkia@…> (07/12/17 10:03:59)
git-committer:
Dirk Hohndel <dirk@…> (07/14/17 22:44:07)
Message:

Fix CSV export for imperial start and end pressure

Signed-off-by: Miika Turkia <miika.turkia@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • xslt/xml2manualcsv.xslt

    r0135597 r8f61dfe  
    9191          <xsl:when test="$units = 1">
    9292            <xsl:choose>
    93               <xsl:when test="divecomputer[1]/sample[@pressure]/@pressure &gt; 0">
     93              <xsl:when test="substring-before(divecomputer[1]/sample[@pressure]/@pressure, ' ') &gt; 0">
    9494                <xsl:value-of select="concat(format-number((substring-before(divecomputer[1]/sample[@pressure]/@pressure, ' ') * 14.5037738007), '#'), '')"/>
    9595              </xsl:when>
     
    109109          <xsl:when test="$units = 1">
    110110            <xsl:choose>
    111               <xsl:when test="divecomputer[1]/sample[@pressure][last()]/@pressure &gt; 0">
     111              <xsl:when test="substring-before(divecomputer[1]/sample[@pressure][last()]/@pressure, ' ') &gt; 0">
    112112                <xsl:value-of select="concat(format-number((substring-before(divecomputer[1]/sample[@pressure][last()]/@pressure, ' ') * 14.5037738007), '#'), '')"/>
    113113              </xsl:when>
Note: See TracChangeset for help on using the changeset viewer.