aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Petrenko <eugene.petrenko@jetbrains.com>2018-09-21 17:50:29 +0200
committerEugene Petrenko <eugene.petrenko@jetbrains.com>2018-09-21 17:50:29 +0200
commitd7fdbb7b4ab13d05bbc8ea796518e75ecab97fb7 (patch)
tree029e1d0f010d3aaf5a441030ff906b400e112240
parent312b50005bae6cbdea6a203c37bee3006a90b641 (diff)
downloaddokka-d7fdbb7b4ab13d05bbc8ea796518e75ecab97fb7.tar.gz
dokka-d7fdbb7b4ab13d05bbc8ea796518e75ecab97fb7.tar.bz2
dokka-d7fdbb7b4ab13d05bbc8ea796518e75ecab97fb7.zip
less noise on error
-rw-r--r--core/src/main/kotlin/Generation/FileGenerator.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/main/kotlin/Generation/FileGenerator.kt b/core/src/main/kotlin/Generation/FileGenerator.kt
index 120efc6b..8a282ef1 100644
--- a/core/src/main/kotlin/Generation/FileGenerator.kt
+++ b/core/src/main/kotlin/Generation/FileGenerator.kt
@@ -32,7 +32,7 @@ class FileGenerator @Inject constructor(@Named("outputDir") override val root: F
PrintWriter(ww).use {
t.printStackTrace(it)
}
- ww.toString().replace("\n", "\n ")
+ ww.toString().split("[\r\n]+").asSequence().drop(1).take(3).joinToString("\n") {" $it"}
}
}