From 84b58f88f6a905ab7aef73b932d9aad9367d74ed Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Thu, 21 Jan 2021 13:39:58 +0100 Subject: widgets/thread: merge top-level whitespace into folded blocks --- alot/widgets/thread.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'alot/widgets') diff --git a/alot/widgets/thread.py b/alot/widgets/thread.py index fce18eac..af82cc25 100644 --- a/alot/widgets/thread.py +++ b/alot/widgets/thread.py @@ -357,11 +357,11 @@ class _TextPart(_MIMEPartWidget): if blocks[-1]['data_empty'] and len(remainder.strip()) > 0: blocks[-1]['data_empty'] = False - # second pass: every quoted block where the remainder (line minus the + # second pass: every block where the remainder (line minus the # leading quote characters) is empty gets merged into an adjacent quoted # block, higher level preferred for idx, b in enumerate(blocks): - if b['level'] > 0 and b['data_empty']: + if b['data_empty']: b_prev = blocks[idx - 1] if idx > 0 else None b_next = blocks[idx + 1] if idx + 1 < len(blocks) else None -- cgit v1.2.3