uistyle: Ignore format code for Monospace
authorManuel Nickschas <sputnick@quassel-irc.org>
Wed, 7 Mar 2018 23:53:50 +0000 (00:53 +0100)
committerManuel Nickschas <sputnick@quassel-irc.org>
Thu, 15 Mar 2018 23:51:42 +0000 (00:51 +0100)
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.

src/uisupport/uistyle.cpp

index 831c76e..dfb32df 100644 (file)
@@ -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";