Trim the newline-chars instead of removing of 2 chars

This commit is contained in:
Markus Neugebauer 2021-07-27 21:45:34 +02:00
parent 5b4c4f3f77
commit 84e15d1ee2

View File

@ -39,7 +39,7 @@ public:
void append(const spdlog::string_view_t &str)
{
emit append_text(QString::fromUtf8(str.data(), static_cast<int>(str.size() - 2)));
emit append_text( QString::fromUtf8(str.data(), static_cast<int>(str.size())).trimmed() );
}
signals:
@ -69,7 +69,7 @@ public:
void append(const spdlog::string_view_t &str)
{
emit append_text(QString::fromUtf8(str.data(), static_cast<int>(str.size() - 2)));
emit append_text( QString::fromUtf8(str.data(), static_cast<int>(str.size())).trimmed() );
}
signals: