From bbfb7802f19c177bf5ffb9bab1782e6a7b8fbdaf Mon Sep 17 00:00:00 2001 From: JeremyStarTM Date: Sat, 21 Dec 2024 13:40:01 +0100 Subject: [PATCH] Fix smol formatting issue --- .../logging/formatbuilder/SOSLSv2FormatBuilder.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/src/main/kotlin/de/staropensource/engine/base/implementation/logging/formatbuilder/SOSLSv2FormatBuilder.kt b/base/src/main/kotlin/de/staropensource/engine/base/implementation/logging/formatbuilder/SOSLSv2FormatBuilder.kt index 4cab8e1..73e07ed 100644 --- a/base/src/main/kotlin/de/staropensource/engine/base/implementation/logging/formatbuilder/SOSLSv2FormatBuilder.kt +++ b/base/src/main/kotlin/de/staropensource/engine/base/implementation/logging/formatbuilder/SOSLSv2FormatBuilder.kt @@ -92,7 +92,7 @@ open class SOSLSv2FormatBuilder(call: Call, channelSettings: ChannelSettings?) : var messageFormat: String = this@SOSLSv2FormatBuilder.message if (ChannelSettings.getSetting(channelSettings, "sanitizeMessage") == false) - messageFormat = messageFormat.replace("\n", "\n") + messageFormat = messageFormat.lines().joinToString("\n") { line -> "${line}" } if (enabledFeatures.contains(Feature.FORMATTING)) append("${messageFormat}")