diff options
author | Patrick Totzke <patricktotzke@gmail.com> | 2011-08-24 10:54:59 +0100 |
---|---|---|
committer | Patrick Totzke <patricktotzke@gmail.com> | 2011-08-24 10:54:59 +0100 |
commit | d9d8d4b02d84323a5568e90db38de39ba753f27a (patch) | |
tree | 537a8828b7e7652bc616a31ab0c14513f20dd925 /alot | |
parent | aa4ff122194467b311fc972d6c71ea4bc98d4604 (diff) |
better use of screenspace in long header values
Diffstat (limited to 'alot')
-rw-r--r-- | alot/widgets.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/alot/widgets.py b/alot/widgets.py index a209a513..c56d5af6 100644 --- a/alot/widgets.py +++ b/alot/widgets.py @@ -443,8 +443,8 @@ class MessageHeaderWidget(urwid.AttrMap): else: value = value + v #sanitize it a bit: - value = value.replace('\t', '') - value = value.replace('\r', '') + value = value.replace('\t', ' ') + value = ' '.join([line.strip() for line in value.splitlines()]) keyw = ('fixed', max_key_len + 1, urwid.Text(('message_header_key', key))) valuew = urwid.Text(('message_header_value', value)) |