mirror of
https://github.com/gabime/spdlog.git
synced 2024-12-25 18:11:33 +08:00
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:
commit
7bb53541e4
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user