mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
2b2df88e87
commit
0a84c6e693
1 changed files with 1 additions and 1 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Reference in a new issue