Merge pull request #2015 from MadMax411/change-qt-sink-delete-newline-chars

Trim the newline-chars instead of removing of 2 chars
This commit is contained in:
Gabi Melman 2021-07-27 23:15:59 +03:00 committed by GitHub
commit 7bb53541e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -39,7 +39,7 @@ public:
void append(const spdlog::string_view_t &str) 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: signals:
@ -69,7 +69,7 @@ public:
void append(const spdlog::string_view_t &str) 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: signals: