diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2017-02-07 17:11:15 -0800 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2017-08-22 12:25:03 -0700 |
commit | 112dd7cee458b867f0851c502d0c2d4a06c964de (patch) | |
tree | d812c34c4460a10535e279e7863e6822c83837f3 /alot/helper.py | |
parent | 9904d04f841c607c976cfc39571f167fd3d8d805 (diff) |
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.
Diffstat (limited to 'alot/helper.py')
-rw-r--r-- | alot/helper.py | 2 |
1 files changed, 1 insertions, 1 deletions
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] |