diff options
author | Anton Khirnov <anton@khirnov.net> | 2021-01-21 13:39:58 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2021-01-21 13:39:58 +0100 |
commit | 84b58f88f6a905ab7aef73b932d9aad9367d74ed (patch) | |
tree | e89721157ca54448a68f8cb90720958cf7965eae | |
parent | 88e939f5a4aa98a0cfd2fad2066349c8a374dc3c (diff) |
widgets/thread: merge top-level whitespace into folded blocks
-rw-r--r-- | alot/widgets/thread.py | 4 |
1 files changed, 2 insertions, 2 deletions
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 |