From 3591c0f1ba2ae8cbea67355ffcb81f6c68f65b57 Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Mon, 7 Aug 2023 23:48:02 +0200 Subject: [PATCH] Changed TextComponent to convert newlines to spaces instad of nulls when using horizontally scrolling containers --- es-core/src/components/TextComponent.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/es-core/src/components/TextComponent.cpp b/es-core/src/components/TextComponent.cpp index 6197b98a2..8bed4c33c 100644 --- a/es-core/src/components/TextComponent.cpp +++ b/es-core/src/components/TextComponent.cpp @@ -321,7 +321,7 @@ void TextComponent::setValue(const std::string& value) setText(mDefaultValue); } else if (mLoopHorizontal) { - setText(Utils::String::replace(value, "\n", "")); + setText(Utils::String::replace(value, "\n", " ")); } else { setText(value);