aboutsummaryrefslogtreecommitdiffstats
path: root/xslt
diff options
context:
space:
mode:
authorGravatar Miika Turkia <miika.turkia@gmail.com>2018-10-07 08:35:34 +0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-10-07 17:41:14 +0300
commit9540793552ea26a65cb160002bc9d8c925d8095a (patch)
tree736253f5522e39199c2bbfcc6de7aacb405cc867 /xslt
parentf96d1557594e6547c15e6f776901be7df89df546 (diff)
downloadsubsurface-9540793552ea26a65cb160002bc9d8c925d8095a.tar.gz
CSV import: simplify code
These two cases were identical, so simplifying the code. Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
Diffstat (limited to 'xslt')
-rw-r--r--xslt/commonTemplates.xsl21
1 files changed, 5 insertions, 16 deletions
diff --git a/xslt/commonTemplates.xsl b/xslt/commonTemplates.xsl
index 934017fac..8a0957e0f 100644
--- a/xslt/commonTemplates.xsl
+++ b/xslt/commonTemplates.xsl
@@ -292,22 +292,11 @@
<xsl:param name="remaining"/>
<xsl:choose>
<xsl:when test="$index > 0">
- <xsl:choose>
- <xsl:when test="substring($line, 1, 1) = '&quot;'">
- <xsl:call-template name="getFieldByIndex">
- <xsl:with-param name="index" select="$index -1"/>
- <xsl:with-param name="line" select="substring-after($line, $fs)"/>
- <xsl:with-param name="remaining" select="$remaining"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="getFieldByIndex">
- <xsl:with-param name="index" select="$index -1"/>
- <xsl:with-param name="line" select="substring-after($line, $fs)"/>
- <xsl:with-param name="remaining" select="$remaining"/>
- </xsl:call-template>
- </xsl:otherwise>
- </xsl:choose>
+ <xsl:call-template name="getFieldByIndex">
+ <xsl:with-param name="index" select="$index -1"/>
+ <xsl:with-param name="line" select="substring-after($line, $fs)"/>
+ <xsl:with-param name="remaining" select="$remaining"/>
+ </xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:choose>