[Gradle, JS] Fix formatting in Gradle Kotlin/JS wizard

^KT-40149 fixed
This commit is contained in:
Ilya Goncharov
2020-07-21 18:36:21 +03:00
parent e1abaa9b51
commit b4334a3a3b
3 changed files with 23 additions and 7 deletions
@@ -213,10 +213,19 @@ abstract class GradleKotlinJSFrameworkSupportProvider(
(
additionalSubTargetSettings()
?.lines()
?.joinToString("\n", "\n", "\n") { " $it" } ?: ""
?.joinToString("\n", "\n", "\n") { line ->
if (line.isBlank()) {
line
} else {
line
.prependIndent()
.prependIndent()
.prependIndent()
}
} ?: "\n"
) +
"""
}
}
binaries.executable()
}
}
@@ -78,7 +78,7 @@ internal fun browserConfiguration(): String {
useKarma {
useChromeHeadless()
webpackConfig.cssSupport.enabled = true
}
}
}
""".trimIndent()
}
@@ -188,12 +188,19 @@ abstract class AbstractKotlinDslGradleKotlinJSFrameworkSupportProvider(
(
additionalSubTargetSettings()
?.lines()
?.joinToString("\n", "\n", "\n") {
" $it"
} ?: ""
?.joinToString("\n", "\n", "\n") { line: String ->
if (line.isBlank()) {
line
} else {
line
.prependIndent()
.prependIndent()
.prependIndent()
}
} ?: "\n"
) +
"""
}
}
binaries.executable()
}
}