mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-31 18:23:23 +00:00
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:
parent
59a0c5cdcd
commit
e07072f10a
1 changed files with 1 additions and 1 deletions
|
@ -46,7 +46,7 @@
|
|||
<location>
|
||||
<xsl:for-each select="LOCATION|SITE">
|
||||
<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>
|
||||
</location>
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue