From 686959a9aa063fd0b891ab4acf0cd593cfd3ea10 Mon Sep 17 00:00:00 2001 From: Username404 Date: Fri, 28 May 2021 17:35:11 +0200 Subject: [PATCH] Fix formatting in Configuration.kt --- .../fr/username404/snowygui/config/Configuration.kt | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/common/src/main/kotlin/fr/username404/snowygui/config/Configuration.kt b/common/src/main/kotlin/fr/username404/snowygui/config/Configuration.kt index ba0eab1..0ce54a0 100644 --- a/common/src/main/kotlin/fr/username404/snowygui/config/Configuration.kt +++ b/common/src/main/kotlin/fr/username404/snowygui/config/Configuration.kt @@ -24,17 +24,17 @@ object Configuration { launch { file.writeText( """ - Snowy { - ${ + |Snowy { + |${ c.root().render( ConfigRenderOptions.defaults() .setFormatted(true) .setJson(false) .setOriginComments(false) - ).trimEnd() + ).prependIndent(" ").trimEnd() } - } - """.trimIndent() + |} + """.trimMargin() ) } } @@ -99,7 +99,7 @@ object Configuration { } } } - writeConfig(obtained.withValue("enabledFeatures", ConfigValueFactory.fromMap(enabledFeatures))).join() // TODO Fix formatting of enabledFeatures + writeConfig(obtained.withValue("enabledFeatures", ConfigValueFactory.fromMap(enabledFeatures))).join() } } )