From 4b61be354510cf88fed33860c987bd210502e91d Mon Sep 17 00:00:00 2001 From: Dmitry Jemerov Date: Thu, 26 Feb 2015 21:17:13 +0100 Subject: don't generate redundant links that lead to the same page with no anchor (e.g. receiver type in extension functions) --- src/Generation/FileGenerator.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Generation') diff --git a/src/Generation/FileGenerator.kt b/src/Generation/FileGenerator.kt index 22090937..abe4257f 100644 --- a/src/Generation/FileGenerator.kt +++ b/src/Generation/FileGenerator.kt @@ -13,7 +13,7 @@ public class FileGenerator(val signatureGenerator: LanguageService, public fun buildPages(nodes: Iterable) { for ((location, items) in nodes.groupBy { locationService.location(it) }) { - val file = location.file.appendExtension(formatService.extension) + val file = location.file file.getParentFile()?.mkdirs() FileOutputStream(file).use { OutputStreamWriter(it, Charsets.UTF_8).use { -- cgit