aboutsummaryrefslogtreecommitdiff
path: root/core/src/main/kotlin/Locations/Location.kt
diff options
context:
space:
mode:
authorKamil Doległo <kamilok1965@interia.pl>2019-04-01 16:20:49 +0200
committerKamil Doległo <kamilok1965@interia.pl>2019-04-01 16:20:49 +0200
commit1c585dfd56fbbd77becf8bc57c0ce37cd735615b (patch)
tree1e17b0b36b2a10d2cac5e938555fc03344247ae4 /core/src/main/kotlin/Locations/Location.kt
parentd14564f28768f0b1c835f02a2e01359012ca9e05 (diff)
downloaddokka-1c585dfd56fbbd77becf8bc57c0ce37cd735615b.tar.gz
dokka-1c585dfd56fbbd77becf8bc57c0ce37cd735615b.tar.bz2
dokka-1c585dfd56fbbd77becf8bc57c0ce37cd735615b.zip
Fix some returnTag tests
Diffstat (limited to 'core/src/main/kotlin/Locations/Location.kt')
-rw-r--r--core/src/main/kotlin/Locations/Location.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/main/kotlin/Locations/Location.kt b/core/src/main/kotlin/Locations/Location.kt
index ccefa6e3..63c9b913 100644
--- a/core/src/main/kotlin/Locations/Location.kt
+++ b/core/src/main/kotlin/Locations/Location.kt
@@ -26,7 +26,7 @@ data class FileLocation(val file: File) : Location {
}
val ownerFolder = file.parentFile!!
val relativePath = ownerFolder.toPath().relativize(other.file.toPath()).toString().replace(File.separatorChar, '/')
- return if (anchor == null) relativePath else relativePath + "#" + anchor.urlEncoded()
+ return if (anchor == null) relativePath else "$relativePath#$anchor"
}
}