Skip to content

Commit

Permalink
MessagesWidget: Fix message html rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
ales-erjavec committed Aug 3, 2017
1 parent 3a336f6 commit eec6fc9
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Orange/widgets/utils/messagewidget.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,14 +117,14 @@ def iconsrc(message):
return image_data(pm)

parts = [
'<div class="message {}">'.format(self.severity.name.lower()),
'<img src="{}" width="12" height="12" />'.format(iconsrc(self)),
'<nobr class="field-text">',
'{}'.format(render(self.text)),
'</nobr>',
('<div style="white-space:pre" class="message {}">'
.format(self.severity.name.lower())),
('<div class="field-text">'
'<img src="{iconurl}" width="12" height="12" />{text}</div>'
.format(iconurl=iconsrc(self), text=render(self.text)))
]
if self.informativeText:
parts += ['<br/><span class="field-informative-text">{}</span>'
parts += ['<div class="field-informative-text">{}</div>'
.format(render(self.informativeText))]
if self.detailedText:
parts += ['<blockquote class="field-detailed-text">{}</blockquote>'
Expand Down

0 comments on commit eec6fc9

Please sign in to comment.