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

diff --git a/xslt/manualcsv2xml.xslt b/xslt/manualcsv2xml.xslt
index ef63975..50fc241 100644
--- a/xslt/manualcsv2xml.xslt
+++ b/xslt/manualcsv2xml.xslt
@@ -396,7 +396,15 @@
                 <xsl:value-of select="substring-before(substring-after($line, 
'&quot;'), '&quot;')"/>
               </xsl:when>
               <xsl:otherwise>
-                <xsl:value-of select="concat(substring-after($line, '&quot;'), 
substring-before($remaining, '&quot;'))"/>
+                <xsl:choose>
+                  <!-- quoted string has new line -->
+                  <xsl:when test="string-length(substring-after($line, 
'&quot;')) = string-length(translate(substring-after($line, '&quot;'), '&#34;', 
''))">
+                    <xsl:value-of select="concat(substring-after($line, 
'&quot;'), substring-before($remaining, '&quot;'))"/>
+                  </xsl:when>
+                  <xsl:otherwise>
+                    <xsl:value-of select="''"/>
+                  </xsl:otherwise>
+                </xsl:choose>
               </xsl:otherwise>
             </xsl:choose>
           </xsl:when>
-- 
1.9.1

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

Reply via email to