diff options
author | Miika Turkia <miika.turkia@gmail.com> | 2015-01-25 11:27:50 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-01-25 07:24:12 -0800 |
commit | d57ffa8e580a6a29341fa7c4d22f4b1359156c4a (patch) | |
tree | a8a231ba0577da82339bb93d1adee3527b2fb7b5 | |
parent | 58173d711c29b1f913e4264c2ed689e5553e035b (diff) | |
download | subsurface-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.xslt | 3 |
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,'"$fs') != ''"> <xsl:value-of select="substring-before($line,'"$fs')"/> </xsl:when> + <xsl:when test="substring-before(substring-after($line, '"'), '"') != '' and substring-after(substring-after($line, '"'), '"') = ''"> + <xsl:value-of select="substring-before(substring-after($line, '"'), '"')"/> + </xsl:when> <xsl:otherwise> <xsl:choose> <xsl:when test="substring-after(substring-after($line, '"'), '"') = ''"> |