aboutsummaryrefslogtreecommitdiff
path: root/src/Locations/FoldersLocationService.kt
diff options
context:
space:
mode:
Diffstat (limited to 'src/Locations/FoldersLocationService.kt')
-rw-r--r--src/Locations/FoldersLocationService.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Locations/FoldersLocationService.kt b/src/Locations/FoldersLocationService.kt
index 6bfa9446..db06dc2c 100644
--- a/src/Locations/FoldersLocationService.kt
+++ b/src/Locations/FoldersLocationService.kt
@@ -5,7 +5,7 @@ import java.io.File
public fun FoldersLocationService(root: String): FoldersLocationService = FoldersLocationService(File(root))
public class FoldersLocationService(val root: File) : LocationService {
override fun location(node: DocumentationNode): Location {
- val parts = node.path.map { escapeUri(it.name) }
+ val parts = node.path.map { identifierToFilename(it.name) }
val folder = if (node.members.none()) {
// leaf node, use file in owner's folder
parts.joinToString("/", limit = parts.size - 1, truncated = "") + "/" + parts.last()