Changeset 78904b7 in subsurface


Ignore:
Timestamp:
Apr 1, 2017, 8:06:09 AM (6 months ago)
Author:
Dirk Hohndel <dirk@…>
Branches:
master
Children:
1aced13
Parents:
0a84c6e
git-author:
Miika Turkia <miika.turkia@…> (03/29/17 21:05:51)
git-committer:
Dirk Hohndel <dirk@…> (04/01/17 08:06:09)
Message:

Fix imperial unit conversion on CSV import

Math only takes numbers, need to ignore the ft part.

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • xslt/csv2xml.xslt

    rd237175 r78904b7  
    276276            </xsl:when>
    277277            <xsl:otherwise>
    278               <xsl:value-of select="translate($depth, ',', '.') * 0.3048"/>
     278              <xsl:value-of select="translate(translate($depth, translate($depth, '0123456789,.', ''), ''), ',', '.') * 0.3048"/>
    279279            </xsl:otherwise>
    280280          </xsl:choose>
Note: See TracChangeset for help on using the changeset viewer.