mirror of
https://github.com/gabime/spdlog.git
synced 2025-09-29 01:29:35 +08:00
Trim the newline-chars instead of removing of 2 chars
This commit is contained in:
@@ -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:
|
||||||
|
Reference in New Issue
Block a user