From ddae11469432fd589ce989994c9ec9ee3d5164d6 Mon Sep 17 00:00:00 2001 From: Et0h Date: Tue, 27 Dec 2016 13:50:10 +0000 Subject: [PATCH] Improve chat/GUI handling of < and > characters --- syncplay/constants.py | 4 +++- syncplay/protocols.py | 3 +-- syncplay/ui/gui.py | 15 ++++++++------- 3 files changed, 12 insertions(+), 10 deletions(-) diff --git a/syncplay/constants.py b/syncplay/constants.py index c9191ec..6d8f88d 100644 --- a/syncplay/constants.py +++ b/syncplay/constants.py @@ -153,7 +153,8 @@ STYLE_READY_PUSHBUTTON = "QPushButton { text-align: left; padding: 10px 5px 10px STYLE_AUTO_PLAY_PUSHBUTTON = "QPushButton { text-align: left; padding: 5px 5px 5px 5px; }" STYLE_NOTIFICATIONBOX = "Username { color: #367AA9; font-weight:bold; }" STYLE_CONTACT_INFO = u"{}

" # Contact info message -STYLE_USERNAME = "color: #367AA9; font-weight:bold;" +STYLE_USER_MESSAGE = u"<{}> {}" +STYLE_USERNAME = u"color: #367AA9; font-weight:bold;" STYLE_ERRORNOTIFICATION = "color: red;" STYLE_DIFFERENTITEM_COLOR = 'red' STYLE_NOFILEITEM_COLOR = 'blue' @@ -180,6 +181,7 @@ UI_COMMAND_REGEX = r"^(?P[^\ ]+)(?:\ (?P.+))?" UI_OFFSET_REGEX = r"^(?:o|offset)\ ?(?P[/+-])?(?P