From 112dd7cee458b867f0851c502d0c2d4a06c964de Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Tue, 7 Feb 2017 17:11:15 -0800 Subject: alot/helper: print ellipsis in code Since the file is encoded in utf-8 we can actually print the ellipsis. Most people can more readily read that than the raw utf-8 escape. --- alot/helper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'alot/helper.py') diff --git a/alot/helper.py b/alot/helper.py index 1c569a23..4cd01b77 100644 --- a/alot/helper.py +++ b/alot/helper.py @@ -129,7 +129,7 @@ def string_decode(string, enc='ascii'): def shorten(string, maxlen): """shortens string if longer than maxlen, appending ellipsis""" if 1 < maxlen < len(string): - string = string[:maxlen - 1] + u'\u2026' + string = string[:maxlen - 1] + u'…' return string[:maxlen] -- cgit v1.2.3