From: Manuel Nickschas Date: Wed, 7 Mar 2018 23:53:50 +0000 (+0100) Subject: uistyle: Ignore format code for Monospace X-Git-Tag: travis-deploy-test~163 X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=commitdiff_plain;h=6fdf05d0d6b411370f3a7cd5f8ee8cb6ea6ff324 uistyle: Ignore format code for Monospace Since the current rendering engine does not easily support switching fonts in the middle of a message, we can't currently support the Monospace format code as specified in [1]. However, to avoid weird artifacts when other clients send this, ignore the format code for now. [1] https://modern.ircdocs.horse/formatting.html#monospace Closes GH-342. --- diff --git a/src/uisupport/uistyle.cpp b/src/uisupport/uistyle.cpp index 831c76eb..dfb32dff 100644 --- a/src/uisupport/uistyle.cpp +++ b/src/uisupport/uistyle.cpp @@ -757,6 +757,9 @@ QString UiStyle::mircToInternal(const QString &mirc_) case '\x09': mirc += " "; break; + case '\x11': + // Monospace not supported yet + break; case '\x12': case '\x16': mirc += "%R";