Changed TextComponent to convert newlines to spaces instad of nulls when using horizontally scrolling containers

This commit is contained in:
Leon Styhre 2023-08-07 23:48:02 +02:00
parent b82f9d3546
commit 3591c0f1ba

View file

@ -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);