Fix #267.
This commit is contained in:
parent
77051f9de6
commit
70f8ee92c2
@ -102,10 +102,10 @@ void FeedDownloader::updateOneFeed(Feed* feed) {
|
|||||||
msg.m_author = msg.m_author.toUtf8();
|
msg.m_author = msg.m_author.toUtf8();
|
||||||
msg.m_accountId = acc_id;
|
msg.m_accountId = acc_id;
|
||||||
|
|
||||||
// Sanitize title. Remove newlines etc.
|
// Sanitize title.
|
||||||
msg.m_title = QUrl::fromPercentEncoding(msg.m_title.toUtf8())
|
msg.m_title = msg.m_title
|
||||||
|
|
||||||
// Replace all continuous white space.
|
// Shrink consecutive whitespaces.
|
||||||
.replace(QRegularExpression(QSL("[\\s]{2,}")), QSL(" "))
|
.replace(QRegularExpression(QSL("[\\s]{2,}")), QSL(" "))
|
||||||
|
|
||||||
// Remove all newlines and leading white space.
|
// Remove all newlines and leading white space.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user