We need a special case to import tags on our own CSV export as there is
no field separator at the end of the line.

See #814

Signed-off-by: Miika Turkia <[email protected]>
---
 xslt/subsurfacecsv.xslt | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/xslt/subsurfacecsv.xslt b/xslt/subsurfacecsv.xslt
index 33424bc..cb59cc9 100644
--- a/xslt/subsurfacecsv.xslt
+++ b/xslt/subsurfacecsv.xslt
@@ -414,6 +414,9 @@
               <xsl:when test="substring-before($line,'&quot;$fs') != ''">
                 <xsl:value-of select="substring-before($line,'&quot;$fs')"/>
               </xsl:when>
+              <xsl:when test="substring-before(substring-after($line, 
'&quot;'), '&quot;') != '' and substring-after(substring-after($line, 
'&quot;'), '&quot;') = ''">
+                <xsl:value-of select="substring-before(substring-after($line, 
'&quot;'), '&quot;')"/>
+              </xsl:when>
               <xsl:otherwise>
                 <xsl:choose>
                   <xsl:when test="substring-after(substring-after($line, 
'&quot;'), '&quot;') = ''">
-- 
1.9.1

_______________________________________________
subsurface mailing list
[email protected]
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface

Reply via email to