[KAPT] Add newline after each java compiler log (#4087)

^KT-27123 Fixed
This commit is contained in:
Andrey Zinovyev
2021-02-04 17:29:13 +03:00
committed by GitHub
parent cdb488149f
commit dacf012a78
@@ -152,7 +152,7 @@ class KaptJavaLog(
val formattedMessage = diagnosticFormatter.format(diagnostic, javacMessages.currentLocale) val formattedMessage = diagnosticFormatter.format(diagnostic, javacMessages.currentLocale)
.lines() .lines()
.joinToString(LINE_SEPARATOR) { original -> .joinToString(LINE_SEPARATOR, postfix = LINE_SEPARATOR) { original ->
// Kotlin location is put as a sub-diagnostic, so the formatter indents it with four additional spaces (6 in total). // Kotlin location is put as a sub-diagnostic, so the formatter indents it with four additional spaces (6 in total).
// It looks weird, especially in the build log inside IntelliJ, so let's make things a bit better. // It looks weird, especially in the build log inside IntelliJ, so let's make things a bit better.
val trimmed = original.trimStart() val trimmed = original.trimStart()