summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Miika Turkia <miika.turkia@gmail.com>2015-01-25 11:27:50 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-01-25 07:24:12 -0800
commitd57ffa8e580a6a29341fa7c4d22f4b1359156c4a (patch)
treea8a231ba0577da82339bb93d1adee3527b2fb7b5
parent58173d711c29b1f913e4264c2ed689e5553e035b (diff)
downloadsubsurface-d57ffa8e580a6a29341fa7c4d22f4b1359156c4a.tar.gz
Import quoted strings from the end of line properly
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 <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--xslt/subsurfacecsv.xslt3
1 files changed, 3 insertions, 0 deletions
diff --git a/xslt/subsurfacecsv.xslt b/xslt/subsurfacecsv.xslt
index 33424bc22..cb59cc9f0 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;') = ''">