aboutsummaryrefslogtreecommitdiff
path: root/core/src/main/kotlin
diff options
context:
space:
mode:
authorDmitry Jemerov <yole@jetbrains.com>2016-02-02 17:53:26 +0100
committerDmitry Jemerov <yole@jetbrains.com>2016-02-02 17:53:26 +0100
commit383f0f87c60ab9cfcf3ecca45f9c613544894132 (patch)
tree361e8452682d63812ad4161ba31853cf28c6ea98 /core/src/main/kotlin
parent91d24f36225b75084a67dbf25ff0340661c57c5c (diff)
downloaddokka-383f0f87c60ab9cfcf3ecca45f9c613544894132.tar.gz
dokka-383f0f87c60ab9cfcf3ecca45f9c613544894132.tar.bz2
dokka-383f0f87c60ab9cfcf3ecca45f9c613544894132.zip
always use forward slashes in paths
Diffstat (limited to 'core/src/main/kotlin')
-rw-r--r--core/src/main/kotlin/Locations/LocationService.kt2
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
}
}