summaryrefslogtreecommitdiff
path: root/alot/widgets/search.py
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2021-02-10 15:20:53 +0100
committerAnton Khirnov <anton@khirnov.net>2021-02-10 15:20:53 +0100
commit7bfa03a78ca1143bf11bafa89c1b9cf0c08c942b (patch)
tree8ee6081e15bafb3ef39c565e347c22d51fcab39f /alot/widgets/search.py
parent666aab1a3fcd5f33659f67540d23b96fa8fa2f98 (diff)
Add common message text sanitization.
Diffstat (limited to 'alot/widgets/search.py')
-rw-r--r--alot/widgets/search.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/alot/widgets/search.py b/alot/widgets/search.py
index 12cf84e8..43a71434 100644
--- a/alot/widgets/search.py
+++ b/alot/widgets/search.py
@@ -212,9 +212,7 @@ def prepare_string(partname, thread, query, maxw):
# get string
s = content(thread, query)
- # sanitize
- s = s.replace('\n', ' ')
- s = s.replace('\r', '')
+ s = s.translate(settings.sanitize_header_table)
# shorten if max width is requested
if maxw: