diff options
author | Miika Turkia <miika.turkia@gmail.com> | 2018-10-07 14:32:46 +0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-10-07 17:41:14 +0300 |
commit | b3694faefc0ea68c9b25f779d59cdf26f19bca7d (patch) | |
tree | b68e0bd9a4282d0718aae760a6c2e686dabf283e /xslt/commonTemplates.xsl | |
parent | 9540793552ea26a65cb160002bc9d8c925d8095a (diff) | |
download | subsurface-b3694faefc0ea68c9b25f779d59cdf26f19bca7d.tar.gz |
CSV import: support for quoted " within field
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
Diffstat (limited to 'xslt/commonTemplates.xsl')
-rw-r--r-- | xslt/commonTemplates.xsl | 4 |
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) = '"'"> <xsl:choose> - <xsl:when test="substring-before(substring-after($line, '"'), '"') != ''"> - <xsl:value-of select="substring-before(substring-after($line, '"'), '"')"/> + <xsl:when test="substring-before(substring-after($line, '"'), concat('"', $fs)) != ''"> + <xsl:value-of select="substring-before(substring-after($line, '"'), concat('"', $fs))"/> </xsl:when> <xsl:otherwise> <xsl:choose> |