diff --git a/Orange/widgets/utils/messages.py b/Orange/widgets/utils/messages.py index a8ef0b20e79..d7109f59c9e 100644 --- a/Orange/widgets/utils/messages.py +++ b/Orange/widgets/utils/messages.py @@ -335,7 +335,7 @@ def update_message_state(self): elif self.message_bar is not None: font_size = self.message_bar.fontInfo().pixelSize() group = messages[0].group - text = str(messages[0]) if len(messages) == 1 \ + text = str(messages[0]).split("\n")[0] if len(messages) == 1 \ else "{} problems during execution".format(len(messages)) # TODO: fix tooltip background color - it is not white tooltip = ''.join( @@ -346,7 +346,8 @@ def update_message_state(self):    

'''. - format(msg.group.bar_background, font_size, str(msg)) + format(msg.group.bar_background, font_size, + str(msg).replace("\n", "
    ")) for msg in messages) self._set_message_bar(group, text, tooltip)