summaryrefslogtreecommitdiff
path: root/alot
diff options
context:
space:
mode:
authorPatrick Totzke <patricktotzke@gmail.com>2011-08-24 10:54:59 +0100
committerPatrick Totzke <patricktotzke@gmail.com>2011-08-24 10:54:59 +0100
commitd9d8d4b02d84323a5568e90db38de39ba753f27a (patch)
tree537a8828b7e7652bc616a31ab0c14513f20dd925 /alot
parentaa4ff122194467b311fc972d6c71ea4bc98d4604 (diff)
better use of screenspace in long header values
Diffstat (limited to 'alot')
-rw-r--r--alot/widgets.py4
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))