diff options
author | Miika Turkia <miika.turkia@gmail.com> | 2017-03-29 07:16:41 +0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-04-01 08:06:09 -0700 |
commit | 25a628bf8de4de6f26ab0d434be92457d803c409 (patch) | |
tree | 41f5a7bb6086113b80b07ac03d40022828915f1d /xslt | |
parent | 4ced7c3f73edd3361ec72805add3d7da0550725d (diff) | |
download | subsurface-25a628bf8de4de6f26ab0d434be92457d803c409.tar.gz |
More precision in CSV export for depths
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 bde481b75..fcb97b52d 100644 --- a/xslt/xml2manualcsv.xslt +++ b/xslt/xml2manualcsv.xslt @@ -206,7 +206,7 @@ <xsl:text>"</xsl:text> <xsl:choose> <xsl:when test="$units = 1"> - <xsl:value-of select="concat(format-number((substring-before(@max, ' ') div 0.3048), '#.#'), ' ft')"/> + <xsl:value-of select="concat(format-number((substring-before(@max, ' ') div 0.3048), '#.##'), ' ft')"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="@max"/> @@ -217,7 +217,7 @@ <xsl:text>"</xsl:text> <xsl:choose> <xsl:when test="$units = 1"> - <xsl:value-of select="concat(format-number((substring-before(@mean, ' ') div 0.3048), '#.#'), ' ft')"/> + <xsl:value-of select="concat(format-number((substring-before(@mean, ' ') div 0.3048), '#.##'), ' ft')"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="@mean"/> |