mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
fb367b22b0
commit
8e75243a5b
1 changed files with 9 additions and 1 deletions
|
@ -396,7 +396,15 @@
|
|||
<xsl:value-of select="substring-before(substring-after($line, '"'), '"')"/>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:value-of select="concat(substring-after($line, '"'), substring-before($remaining, '"'))"/>
|
||||
<xsl:choose>
|
||||
<!-- quoted string has new line -->
|
||||
<xsl:when test="string-length(substring-after($line, '"')) = string-length(translate(substring-after($line, '"'), '"', ''))">
|
||||
<xsl:value-of select="concat(substring-after($line, '"'), substring-before($remaining, '"'))"/>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:value-of select="''"/>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:when>
|
||||
|
|
Loading…
Add table
Reference in a new issue