summary refs log tree commit diff
path: root/src/timeline
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2018-01-23 18:14:13 +0200
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2018-01-23 18:14:13 +0200
commit9eedcd700a881c40f1eb312b058d307dc445e71b (patch)
tree136e210c849b8ece229d75af209dc7ffc1c9a2d4 /src/timeline
parentShow the scroll-down button when showing the timeline (diff)
downloadnheko-9eedcd700a881c40f1eb312b058d307dc445e71b.tar.xz
Remove trailing whitespace from text messages
fixes #216
Diffstat (limited to 'src/timeline')
-rw-r--r--src/timeline/TimelineItem.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/timeline/TimelineItem.cc b/src/timeline/TimelineItem.cc

index d2720600..93987d52 100644 --- a/src/timeline/TimelineItem.cc +++ b/src/timeline/TimelineItem.cc
@@ -354,7 +354,7 @@ TimelineItem::markReceived() void TimelineItem::generateBody(const QString &body) { - QString content("<span> %1 </span>"); + QString content("<span>%1</span>"); body_ = new QLabel(this); body_->setFont(font_); @@ -393,7 +393,7 @@ TimelineItem::generateBody(const QString &userid, const QString &body) body_ = new QLabel(this); body_->setFont(font_); body_->setWordWrap(true); - body_->setText(QString("<span> %1 </span>").arg(replaceEmoji(body))); + body_->setText(QString("<span>%1</span>").arg(replaceEmoji(body))); body_->setTextInteractionFlags(Qt::TextSelectableByMouse | Qt::TextBrowserInteraction); body_->setOpenExternalLinks(true); body_->setMargin(0);