diff options
| author | David Bremner <david@tethera.net> | 2024-05-20 08:58:58 -0300 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2024-08-06 08:29:40 -0300 |
| commit | bf9b9fe0469d24d1f0924074ffd5904363cb49cc (patch) | |
| tree | 8ea2e5031b9b54bbac634a07454ffa7f5db29f40 /emacs | |
| parent | df330eef9a6cbcd239589b13c54a451a0cf87e36 (diff) | |
emacs/tree: sanitize subjects when drawing tree
This fixes the bug reported in
id:6F2EF901-8B4B-44FF-83C5-22F732BA95A6@gmail.com
Unfortunately it turns out our test data has several tabs in the
subject lines. The expected output was updated to reflect their
removal and the ripple effect of several more subjects matching the
previous ones.
Diffstat (limited to 'emacs')
| -rw-r--r-- | emacs/notmuch-tree.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/emacs/notmuch-tree.el b/emacs/notmuch-tree.el index faec89c4..2332f020 100644 --- a/emacs/notmuch-tree.el +++ b/emacs/notmuch-tree.el @@ -946,7 +946,9 @@ unchanged ADDRESS if parsing fails." 'face face))) ((string-equal field "subject") - (let ((bare-subject (notmuch-show-strip-re (plist-get headers :Subject))) + (let ((bare-subject + (notmuch-sanitize + (notmuch-show-strip-re (plist-get headers :Subject)))) (previous-subject notmuch-tree-previous-subject) (face (if match 'notmuch-tree-match-subject-face |
