aboutsummaryrefslogtreecommitdiff
path: root/plugins/base/src/main
diff options
context:
space:
mode:
authorMarcin Aman <marcin.aman@gmail.com>2020-05-22 14:08:08 +0200
committerPaweł Marks <Kordyjan@users.noreply.github.com>2020-05-25 10:11:47 +0200
commitc8dba800d9f3be90e073bf9de9d48ab9da9c85e7 (patch)
tree53bb371590a06c94a177531789473aefd350d08d /plugins/base/src/main
parent5937d33ca13773d66c7451b6dde16b276189f6d1 (diff)
downloaddokka-c8dba800d9f3be90e073bf9de9d48ab9da9c85e7.tar.gz
dokka-c8dba800d9f3be90e073bf9de9d48ab9da9c85e7.tar.bz2
dokka-c8dba800d9f3be90e073bf9de9d48ab9da9c85e7.zip
Trim windows carrage return sign in importing includes
Diffstat (limited to 'plugins/base/src/main')
-rw-r--r--plugins/base/src/main/kotlin/transformers/documentables/ModuleAndPackageDocumentationTransformer.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/base/src/main/kotlin/transformers/documentables/ModuleAndPackageDocumentationTransformer.kt b/plugins/base/src/main/kotlin/transformers/documentables/ModuleAndPackageDocumentationTransformer.kt
index a886494e..b1f50a32 100644
--- a/plugins/base/src/main/kotlin/transformers/documentables/ModuleAndPackageDocumentationTransformer.kt
+++ b/plugins/base/src/main/kotlin/transformers/documentables/ModuleAndPackageDocumentationTransformer.kt
@@ -41,7 +41,7 @@ internal class ModuleAndPackageDocumentationTransformer(val context: DokkaContex
} // Matches space between Module/Package and fully qualified name
}.groupBy({ it[0] }, {
it[1].split(Regex("\n"), 2) // Matches new line after fully qualified name
- .let { it[0] to it[1].trim() }
+ .let { it[0].trim() to it[1].trim() }
}).mapValues {
it.value.toMap()
}