summaryrefslogtreecommitdiffstats
path: root/xslt/divelogs.xslt
diff options
context:
space:
mode:
authorGravatar Miika Turkia <miika.turkia@gmail.com>2013-05-17 06:48:38 +0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-05-17 06:50:50 -0700
commite07072f10a130a5e3a3aca8d1d7cf01d917044ed (patch)
tree7c85646920113e31a6386e2804d7df5482941615 /xslt/divelogs.xslt
parent59a0c5cdcdec9d1e5def843a553bb27706f4ce1c (diff)
downloadsubsurface-e07072f10a130a5e3a3aca8d1d7cf01d917044ed.tar.gz
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>
Diffstat (limited to 'xslt/divelogs.xslt')
-rw-r--r--xslt/divelogs.xslt2
1 files changed, 1 insertions, 1 deletions
diff --git a/xslt/divelogs.xslt b/xslt/divelogs.xslt
index 32a59c358..2f191aee0 100644
--- a/xslt/divelogs.xslt
+++ b/xslt/divelogs.xslt
@@ -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>