diff options
author | Eugene Petrenko <eugene.petrenko@jetbrains.com> | 2018-09-21 17:50:29 +0200 |
---|---|---|
committer | Eugene Petrenko <eugene.petrenko@jetbrains.com> | 2018-09-21 17:50:29 +0200 |
commit | d7fdbb7b4ab13d05bbc8ea796518e75ecab97fb7 (patch) | |
tree | 029e1d0f010d3aaf5a441030ff906b400e112240 /core/src | |
parent | 312b50005bae6cbdea6a203c37bee3006a90b641 (diff) | |
download | dokka-d7fdbb7b4ab13d05bbc8ea796518e75ecab97fb7.tar.gz dokka-d7fdbb7b4ab13d05bbc8ea796518e75ecab97fb7.tar.bz2 dokka-d7fdbb7b4ab13d05bbc8ea796518e75ecab97fb7.zip |
less noise on error
Diffstat (limited to 'core/src')
-rw-r--r-- | core/src/main/kotlin/Generation/FileGenerator.kt | 2 |
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"} } } |