From 1c585dfd56fbbd77becf8bc57c0ce37cd735615b Mon Sep 17 00:00:00 2001 From: Kamil Doległo Date: Mon, 1 Apr 2019 16:20:49 +0200 Subject: Fix some returnTag tests --- core/src/main/kotlin/Locations/Location.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/src/main/kotlin/Locations') 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" } } -- cgit