diff options
author | Miika Turkia <miika.turkia@gmail.com> | 2013-12-24 18:37:56 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-12-24 08:52:38 -0800 |
commit | dbd14f8662e4405fe7170e801ddae2adc2bc6f8b (patch) | |
tree | cb953b96fc0d2ff9567d525cf2d7d71f308e3d74 | |
parent | b07af31ea566eaa4237391ff3c1f7aae86f411a8 (diff) | |
download | subsurface-dbd14f8662e4405fe7170e801ddae2adc2bc6f8b.tar.gz |
Include O2 percentage in DivingLog import
Seems there is a different way to state O2 percentage in DivingLog.
This patch includes that format along with the previously seen one.
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r-- | xslt/DivingLog.xslt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/xslt/DivingLog.xslt b/xslt/DivingLog.xslt index abf22d0d1..49f617c91 100644 --- a/xslt/DivingLog.xslt +++ b/xslt/DivingLog.xslt @@ -108,6 +108,12 @@ </xsl:attribute> </xsl:if> + <xsl:if test="Gas != ''"> + <xsl:attribute name="o2"> + <xsl:value-of select="substring-after(substring-before(Gas, ')'), 'O2=')"/> + </xsl:attribute> + </xsl:if> + <xsl:if test="He != ''"> <xsl:attribute name="he"> <xsl:value-of select="concat(He, '%')"/> |