mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Translate comma to colon on XML import
Translate decimal commas on XML import to decimal points. (As detected from available sample files using Linus' debug printing.) Also check for empty values on MacDive temperature import. Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
eee29f2187
commit
9f6b8ca89a
3 changed files with 11 additions and 7 deletions
|
@ -78,7 +78,7 @@
|
|||
<xsl:value-of select="0" />
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:value-of select="Equipment/Weight"/>
|
||||
<xsl:value-of select="translate(Equipment/Weight, ',', '.')"/>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:attribute>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue