Changeset 0a84c6e in subsurface


Ignore:
Timestamp:
Apr 1, 2017, 8:06:09 AM (7 months ago)
Author:
Dirk Hohndel <dirk@…>
Branches:
master
Children:
78904b7
Parents:
2b2df88
git-author:
Miika Turkia <miika.turkia@…> (03/29/17 21:03:46)
git-committer:
Dirk Hohndel <dirk@…> (04/01/17 08:06:09)
Message:

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@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • xslt/commonTemplates.xsl

    r3a454d7 r0a84c6e  
    260260              </xsl:when>
    261261              <xsl:otherwise>
    262                 <xsl:if test="substring-after($line, $fs) = ''">
     262                <xsl:if test="substring-after($line, $fs) = '' and $line != $fs">
    263263                  <xsl:value-of select="$line"/>
    264264                </xsl:if>
Note: See TracChangeset for help on using the changeset viewer.