mirror of
https://github.com/gabime/spdlog.git
synced 2024-12-25 01:51:38 +08:00
Trim the newline-chars instead of removing of 2 chars
This commit is contained in:
parent
5b4c4f3f77
commit
84e15d1ee2
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user