[PATCH 2/2] Add visibility and weather to dive notes

Miika Turkia miika.turkia at gmail.com
Tue Feb 17 11:32:59 PST 2015


This adds a bit more information to dive notes on DiveLog import.

Signed-off-by: Miika Turkia <miika.turkia at gmail.com>
---
 xslt/DiveLog.xslt | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/xslt/DiveLog.xslt b/xslt/DiveLog.xslt
index 66a3fd0..b4bab89 100644
--- a/xslt/DiveLog.xslt
+++ b/xslt/DiveLog.xslt
@@ -55,8 +55,13 @@
         <xsl:value-of select="@Site"/>
       </location>
 
+      <xsl:variable name="lf">
+        <xsl:text>
+</xsl:text>
+      </xsl:variable>
       <notes>
         <xsl:value-of select="notes"/>
+        <xsl:value-of select="concat($lf, 'Weather: ', @Weather, $lf, 'Visibility: ', @Visibility)"/>
       </notes>
 
       <cylinder>
-- 
2.1.0



More information about the subsurface mailing list