This will export the cylinder information to divelogs.de also if there is a pressure drop of at least 5 bars. (Previously only a gas switch to the gas triggered the export of that particular cylinder.)
Signed-off-by: Miika Turkia <miika.tur...@gmail.com> --- xslt/divelogs-export.xslt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xslt/divelogs-export.xslt b/xslt/divelogs-export.xslt index 79f72b5..5752a44 100644 --- a/xslt/divelogs-export.xslt +++ b/xslt/divelogs-export.xslt @@ -119,7 +119,7 @@ </xsl:otherwise> </xsl:choose> </xsl:variable> - <xsl:if test="following-sibling::divecomputer/event[@name='gaschange' and @value=$gas]"> + <xsl:if test="following-sibling::divecomputer/event[@name='gaschange' and @value=$gas] or substring-before(@start, ' ') - 5 > substring-before(@end, ' ')"> <xsl:variable name="cur_cyl"> <xsl:value-of select="position()"/> </xsl:variable> -- 1.9.1 _______________________________________________ subsurface mailing list subsurface@subsurface-divelog.org http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface