summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Totzke <patricktotzke@gmail.com>2011-10-16 16:00:23 +0100
committerPatrick Totzke <patricktotzke@gmail.com>2011-10-16 16:00:23 +0100
commit99cfeef7da1f12beec2b36c598e72f9e2e117db0 (patch)
treee08192a918f8ebc1f72548e6781a6b6cf50f9a59
parent11d519a7c3771c8a01ae45cb26803963d6bdb306 (diff)
parentf405fb6e2d5f5b75d5b836c75b8c5b717a724c1b (diff)
Merge branch 'master' into commandrefactoring
-rw-r--r--alot/widgets.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/alot/widgets.py b/alot/widgets.py
index 791c5419..63e591d1 100644
--- a/alot/widgets.py
+++ b/alot/widgets.py
@@ -538,8 +538,8 @@ class MessageHeaderWidget(urwid.AttrMap):
class MessageBodyWidget(urwid.AttrMap):
"""displays printable parts of an email"""
- def __init__(self, msg):
- bodytxt = message.extract_body(msg)
+ def __init__(self, msg, tab_width = 8):
+ bodytxt = message.extract_body(msg).replace('\t', ' ' * tab_width)
urwid.AttrMap.__init__(self, urwid.Text(bodytxt), 'message_body')