Commit 3720a7c4 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Remove extra qDebug() + minor optimization

parent b3ea1d4b
...@@ -88,25 +88,21 @@ QString GrantleeViewFormatter::formatFeed(Akregator::Feed *feed) ...@@ -88,25 +88,21 @@ QString GrantleeViewFormatter::formatFeed(Akregator::Feed *feed)
feedObject.insert(QStringLiteral("feedImage"), feedImage); feedObject.insert(QStringLiteral("feedImage"), feedImage);
if (!feed->description().isEmpty()) { if (!feed->description().isEmpty()) {
QString feedDescription; QString feedDescription = QStringLiteral("<div dir=\"%1\">").arg(mDirectionString);
feedDescription = QStringLiteral("<div dir=\"%1\">").arg(mDirectionString);
feedDescription += i18n("<b>Description:</b> %1<br />", feed->description()); feedDescription += i18n("<b>Description:</b> %1<br />", feed->description());
feedDescription += QStringLiteral("</div>"); // /description feedDescription += QStringLiteral("</div>"); // /description
feedObject.insert(QStringLiteral("feedDescription"), feedDescription); feedObject.insert(QStringLiteral("feedDescription"), feedDescription);
} }
if (!feed->htmlUrl().isEmpty()) { if (!feed->htmlUrl().isEmpty()) {
QString feedHomePage; QString feedHomePage = QStringLiteral("<div dir=\"%1\">").arg(mDirectionString);
feedHomePage = QStringLiteral("<div dir=\"%1\">").arg(mDirectionString);
feedHomePage += i18n("<b>Homepage:</b> <a href=\"%1\">%1</a>", feed->htmlUrl()); feedHomePage += i18n("<b>Homepage:</b> <a href=\"%1\">%1</a>", feed->htmlUrl());
feedHomePage += QStringLiteral("</div>"); // / link feedHomePage += QStringLiteral("</div>"); // / link
feedObject.insert(QStringLiteral("feedHomePage"), feedHomePage); feedObject.insert(QStringLiteral("feedHomePage"), feedHomePage);
} }
if (!feed->copyright().isEmpty()) { if (!feed->copyright().isEmpty()) {
QString feedCopyright; QString feedCopyright = QStringLiteral("<div dir=\"%1\">").arg(mDirectionString);
qDebug() << " feed->copyright()"<<feed->copyright();
feedCopyright = QStringLiteral("<div dir=\"%1\">").arg(mDirectionString);
feedCopyright += i18n("<b>Copyright:</b> %1</a>", feed->copyright()); feedCopyright += i18n("<b>Copyright:</b> %1</a>", feed->copyright());
feedCopyright += QStringLiteral("</div>"); feedCopyright += QStringLiteral("</div>");
feedObject.insert(QStringLiteral("feedCopyright"), feedCopyright); feedObject.insert(QStringLiteral("feedCopyright"), feedCopyright);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment