From ed4bba2428b2373c0311cf751469613f00de7bf4 Mon Sep 17 00:00:00 2001 From: Dmitry Batrak Date: Thu, 14 Mar 2024 12:44:57 +0200 Subject: [PATCH] Update single-line logic of PrettyPrinter to improve 'toString' representation of protocol entities Before the fix: LxMouseEvent (type = EnteredxAbs = 640yAbs = 512clickCount = 0causedByTouchEvent = falsebutton = 0popupTrigger = falsemodifiers = 0) After the fix: LxMouseEvent ( type = Moved xAbs = 870 yAbs = 632 clickCount = 0 causedByTouchEvent = false button = 0 popupTrigger = false modifiers = 0 ) --- .../main/kotlin/com/jetbrains/rd/util/string/PrettyPrinter.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rd-kt/rd-core/src/main/kotlin/com/jetbrains/rd/util/string/PrettyPrinter.kt b/rd-kt/rd-core/src/main/kotlin/com/jetbrains/rd/util/string/PrettyPrinter.kt index 9998bd779..009b6d5e5 100644 --- a/rd-kt/rd-core/src/main/kotlin/com/jetbrains/rd/util/string/PrettyPrinter.kt +++ b/rd-kt/rd-core/src/main/kotlin/com/jetbrains/rd/util/string/PrettyPrinter.kt @@ -8,7 +8,7 @@ enum class Eol(val value: String) { linux ("\n"), windows ("\r\n"), osSpecified (eol), - none("") + none(" ") } inline fun printer(content: PrettyPrinter.() -> Unit) = PrettyPrinter().apply(content)