Improve detection of continuation lines in CSV import

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-24 17:03:16 +02:00 committed by Dirk Hohndel
parent fb367b22b0
commit 8e75243a5b

View file

@ -396,7 +396,15 @@
<xsl:value-of select="substring-before(substring-after($line, '&quot;'), '&quot;')"/> <xsl:value-of select="substring-before(substring-after($line, '&quot;'), '&quot;')"/>
</xsl:when> </xsl:when>
<xsl:otherwise> <xsl:otherwise>
<xsl:choose>
<!-- quoted string has new line -->
<xsl:when test="string-length(substring-after($line, '&quot;')) = string-length(translate(substring-after($line, '&quot;'), '&#34;', ''))">
<xsl:value-of select="concat(substring-after($line, '&quot;'), substring-before($remaining, '&quot;'))"/> <xsl:value-of select="concat(substring-after($line, '&quot;'), substring-before($remaining, '&quot;'))"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="''"/>
</xsl:otherwise>
</xsl:choose>
</xsl:otherwise> </xsl:otherwise>
</xsl:choose> </xsl:choose>
</xsl:when> </xsl:when>