We were missing the import of cylinders' working pressure when syncing with divelogs.de. This piece of information is required for proper unit conversions when user uses imperial units for displaying the dive information. (Both Subsurface and divelogs.de use metric internally, or at least the export from divelogs.de is in metric.)
See #907 Signed-off-by: Miika Turkia <[email protected]> --- xslt/divelogs-export.xslt | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/xslt/divelogs-export.xslt b/xslt/divelogs-export.xslt index 7877c14..b97b5fb 100644 --- a/xslt/divelogs-export.xslt +++ b/xslt/divelogs-export.xslt @@ -114,6 +114,11 @@ </xsl:otherwise> </xsl:choose> </CYLINDERENDPRESSURE> + <xsl:if test="cylinder[position() = $cylinder]/@workpressure != ''"> + <WORKINGPRESSURE> + <xsl:value-of select="substring-before(cylinder[position() = $cylinder]/@workpressure, ' ')"/> + </WORKINGPRESSURE> + </xsl:if> <ADDITIONALTANKS> <xsl:for-each select="cylinder[position() != $cylinder]"> @@ -159,6 +164,11 @@ <CYLINDERENDPRESSURE> <xsl:value-of select="@end"/> </CYLINDERENDPRESSURE> + <xsl:if test="@workpressure != ''"> + <WORKINGPRESSURE> + <xsl:value-of select="substring-before(@workpressure, ' ')"/> + </WORKINGPRESSURE> + </xsl:if> <O2PCT> <xsl:value-of select="substring-before(@o2, '%')"/> </O2PCT> -- 2.1.4 _______________________________________________ subsurface mailing list [email protected] http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface
