From d7fdbb7b4ab13d05bbc8ea796518e75ecab97fb7 Mon Sep 17 00:00:00 2001 From: Eugene Petrenko Date: Fri, 21 Sep 2018 17:50:29 +0200 Subject: less noise on error --- core/src/main/kotlin/Generation/FileGenerator.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/src') 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"} } } -- cgit