mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
Only print separator when really needed on import
The separator was printed if SITE had data, even if LOCATION was empty. Now print the separator only if both of these contain data. Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
fbb260aeb5
commit
38d224a335
1 changed files with 2 additions and 8 deletions
|
@ -45,14 +45,8 @@
|
|||
</depth>
|
||||
<location>
|
||||
<xsl:for-each select="LOCATION|SITE">
|
||||
<xsl:choose>
|
||||
<xsl:when test="following-sibling::SITE[1] != ''">
|
||||
<xsl:value-of select="concat(., ' / ')"/>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:value-of select="."/>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
<xsl:value-of select="."/>
|
||||
<xsl:if test=". != '' and following-sibling::*[1] != ''"> / </xsl:if>
|
||||
</xsl:for-each>
|
||||
</location>
|
||||
|
||||
|
|
Loading…
Reference in a new issue