From 383f0f87c60ab9cfcf3ecca45f9c613544894132 Mon Sep 17 00:00:00 2001 From: Dmitry Jemerov Date: Tue, 2 Feb 2016 17:53:26 +0100 Subject: always use forward slashes in paths --- core/src/main/kotlin/Locations/LocationService.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/src/main/kotlin') diff --git a/core/src/main/kotlin/Locations/LocationService.kt b/core/src/main/kotlin/Locations/LocationService.kt index 63c236ed..39f5942c 100644 --- a/core/src/main/kotlin/Locations/LocationService.kt +++ b/core/src/main/kotlin/Locations/LocationService.kt @@ -27,7 +27,7 @@ data class FileLocation(val file: File): Location { return "." } val ownerFolder = file.parentFile!! - val relativePath = ownerFolder.toPath().relativize(other.file.toPath()).toString() + val relativePath = ownerFolder.toPath().relativize(other.file.toPath()).toString().replace(File.separatorChar, '/') return if (anchor == null) relativePath else relativePath + "#" + anchor } } -- cgit