Do not add unnecessary / at end of location on divelogs import

The check if both location and site exist was flawed causing an extra
slash on location name when the SITE was empty. Thus resulting in
multiple location candidates when exporting to divelogs.de and
re-importing to Subsurface.

Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Miika Turkia 2013-05-17 06:48:38 +03:00 committed by Dirk Hohndel
parent 59a0c5cdcd
commit e07072f10a

View file

@ -46,7 +46,7 @@
<location> <location>
<xsl:for-each select="LOCATION|SITE"> <xsl:for-each select="LOCATION|SITE">
<xsl:value-of select="."/> <xsl:value-of select="."/>
<xsl:if test=". != '' and following-sibling::*[1] != ''"> / </xsl:if> <xsl:if test=". != '' and following-sibling::SITE[1] != ''"> / </xsl:if>
</xsl:for-each> </xsl:for-each>
</location> </location>