Skip to content

Commit

Permalink
mu4e-view: remove ^M from raw message
Browse files Browse the repository at this point in the history
They can cause rendering issues later.
  • Loading branch information
djcb committed Oct 29, 2023
1 parent b30e774 commit ea78fab
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mu4e/mu4e-view.el
Original file line number Diff line number Diff line change
Expand Up @@ -636,6 +636,9 @@ As a side-effect, a message that is being viewed loses its
(erase-buffer)
(insert-file-contents-literally
(mu4e-message-readable-path msg) nil nil nil t)
;; some messages have ^M which causes various rendering
;; problems later (#2260, #2508), so let's remove those
(article-remove-cr)
(setq-local mu4e--view-message msg)
(mu4e--view-render-buffer msg)
(setq-local mu4e--view-mime-part-cached nil))
Expand Down

0 comments on commit ea78fab

Please sign in to comment.