diff options
Diffstat (limited to 'alot/widgets/thread.py')
-rw-r--r-- | alot/widgets/thread.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/alot/widgets/thread.py b/alot/widgets/thread.py index 90eeabdf..111c8569 100644 --- a/alot/widgets/thread.py +++ b/alot/widgets/thread.py @@ -525,7 +525,7 @@ def _render_mime_tree(mime_tree, alternative_pref, force_inline_types): # try rendering the message text = mime_tree.render_str() if text is not None: - return _TextPart(text, mime_tree) if len(text) else _EmptyPartWidget() + return _TextPart(text, mime_tree) if len(text.strip()) else _EmptyPartWidget() body_wgt = urwid.Text('Undisplayable "%s" MIME part.' % mime_tree.content_type, align = 'center') |