diff --git a/projects/koin-ksp-compiler/src/jvmMain/kotlin/org/koin/compiler/generator/ModuleWriter.kt b/projects/koin-ksp-compiler/src/jvmMain/kotlin/org/koin/compiler/generator/ModuleWriter.kt index eee5c8a..76b00f1 100644 --- a/projects/koin-ksp-compiler/src/jvmMain/kotlin/org/koin/compiler/generator/ModuleWriter.kt +++ b/projects/koin-ksp-compiler/src/jvmMain/kotlin/org/koin/compiler/generator/ModuleWriter.kt @@ -85,11 +85,11 @@ abstract class ModuleWriter( } open fun writeHeader() { - write(MODULE_HEADER) + writeln(MODULE_HEADER) } open fun writeHeaderImports(isComposeViewModelActive: Boolean) { - write(generateImports(module.definitions, isComposeViewModelActive)) + writeln(generateImports(module.definitions, isComposeViewModelActive)) } private fun generateImports( @@ -105,7 +105,7 @@ abstract class ModuleWriter( keyword.import?.let { "import $it" } } } - .joinToString(separator = "\n", postfix = "\n") + .joinToString(separator = "\n") } open fun writeExternalDefinitions() {