From 96ee6898e8124e36dd810c449b8e05a43949663b Mon Sep 17 00:00:00 2001 From: Miika Turkia Date: Sat, 13 Jul 2019 10:19:39 +0300 Subject: [PATCH] Fix special case for temperature in CSV export The old code took air and water temperatures primarily from dive/divetemperature or secondarily if the previous one didn't have either one of them from divecomputer/temperature. The new code attempts to take first air temperature from dive/divetemperature or diveomputer/temperature and then on a separate run the water temperature from these both. Thus we should be fine if one temperature is in dive/divetemperature and the other in divecomputer/temperature. Fixes #2169 Signed-off-by: Miika Turkia --- xslt/xml2manualcsv.xslt | 57 ++++++++++++++++++++++++++--------------- 1 file changed, 36 insertions(+), 21 deletions(-) diff --git a/xslt/xml2manualcsv.xslt b/xslt/xml2manualcsv.xslt index b2de440f9..e4e26746b 100644 --- a/xslt/xml2manualcsv.xslt +++ b/xslt/xml2manualcsv.xslt @@ -53,22 +53,45 @@ "" + + - - + + + + - - + + + + "" + + + + + + + + + + + + + + + + "" + @@ -250,34 +273,26 @@ " - + + + + + " - - + + - - - - " - - " - - - - - - - - + " + "