Permalink
Browse files

Made newlines in messages display

  • Loading branch information...
1 parent fbf9ed3 commit 23e1ef10b6a9a89eb524c15dae752cbb02363fd4 @m42a committed May 2, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 ui/qt/lirch_qt_interface.cpp
@@ -478,6 +478,7 @@ void LirchQtInterface::display(QString channel_name, QString nick, QString text)
text.replace(QRegExp("&(?!amp;)"), "&");
text.replace(QRegExp("<"), "&lt;");
text.replace(QRegExp(">"), "&gt;");
+ text.replace(QRegExp("\\n"), "<br>");
// This regex wraps links sent in display messages
text.replace(QRegExp("\\b(http://.*)\\b"), "<a href=\"\\1\">\\1</a>");
// Show the message in the view

0 comments on commit 23e1ef1

Please sign in to comment.