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>
This commit is contained in:
Miika Turkia 2015-01-25 11:27:50 +02:00 committed by Dirk Hohndel
parent 58173d711c
commit d57ffa8e58

View file

@ -414,6 +414,9 @@
<xsl:when test="substring-before($line,'&quot;$fs') != ''"> <xsl:when test="substring-before($line,'&quot;$fs') != ''">
<xsl:value-of select="substring-before($line,'&quot;$fs')"/> <xsl:value-of select="substring-before($line,'&quot;$fs')"/>
</xsl:when> </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:otherwise>
<xsl:choose> <xsl:choose>
<xsl:when test="substring-after(substring-after($line, '&quot;'), '&quot;') = ''"> <xsl:when test="substring-after(substring-after($line, '&quot;'), '&quot;') = ''">