CSV import: return value only if it exists

If the last two fields were empty, we returned the field separator as
next to last value. Now we make sure not to return field separator as
field value.

Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
This commit is contained in:
Miika Turkia 2017-03-30 07:03:46 +03:00 committed by Dirk Hohndel
parent 2b2df88e87
commit 0a84c6e693

View file

@ -259,7 +259,7 @@
<xsl:value-of select="substring-before($line,$fs)"/>
</xsl:when>
<xsl:otherwise>
<xsl:if test="substring-after($line, $fs) = ''">
<xsl:if test="substring-after($line, $fs) = '' and $line != $fs">
<xsl:value-of select="$line"/>
</xsl:if>
</xsl:otherwise>