aboutsummaryrefslogtreecommitdiffstats
path: root/xslt
diff options
context:
space:
mode:
authorGravatar Miika Turkia <miika.turkia@gmail.com>2018-10-07 14:32:46 +0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-10-07 17:41:14 +0300
commitb3694faefc0ea68c9b25f779d59cdf26f19bca7d (patch)
treeb68e0bd9a4282d0718aae760a6c2e686dabf283e /xslt
parent9540793552ea26a65cb160002bc9d8c925d8095a (diff)
downloadsubsurface-b3694faefc0ea68c9b25f779d59cdf26f19bca7d.tar.gz
CSV import: support for quoted " within field
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
Diffstat (limited to 'xslt')
-rw-r--r--xslt/commonTemplates.xsl4
1 files changed, 2 insertions, 2 deletions
diff --git a/xslt/commonTemplates.xsl b/xslt/commonTemplates.xsl
index 8a0957e0f..cd26f10ec 100644
--- a/xslt/commonTemplates.xsl
+++ b/xslt/commonTemplates.xsl
@@ -302,8 +302,8 @@
<xsl:choose>
<xsl:when test="substring($line, 1, 1) = '&quot;'">
<xsl:choose>
- <xsl:when test="substring-before(substring-after($line, '&quot;'), '&quot;') != ''">
- <xsl:value-of select="substring-before(substring-after($line, '&quot;'), '&quot;')"/>
+ <xsl:when test="substring-before(substring-after($line, '&quot;'), concat('&quot;', $fs)) != ''">
+ <xsl:value-of select="substring-before(substring-after($line, '&quot;'), concat('&quot;', $fs))"/>
</xsl:when>
<xsl:otherwise>
<xsl:choose>