diff options
author | Dmitry Jemerov <yole@jetbrains.com> | 2016-02-02 17:53:26 +0100 |
---|---|---|
committer | Dmitry Jemerov <yole@jetbrains.com> | 2016-02-02 17:53:26 +0100 |
commit | 383f0f87c60ab9cfcf3ecca45f9c613544894132 (patch) | |
tree | 361e8452682d63812ad4161ba31853cf28c6ea98 /core/src/main/kotlin/Locations | |
parent | 91d24f36225b75084a67dbf25ff0340661c57c5c (diff) | |
download | dokka-383f0f87c60ab9cfcf3ecca45f9c613544894132.tar.gz dokka-383f0f87c60ab9cfcf3ecca45f9c613544894132.tar.bz2 dokka-383f0f87c60ab9cfcf3ecca45f9c613544894132.zip |
always use forward slashes in paths
Diffstat (limited to 'core/src/main/kotlin/Locations')
-rw-r--r-- | core/src/main/kotlin/Locations/LocationService.kt | 2 |
1 files changed, 1 insertions, 1 deletions
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 } } |