mu4e: improve mu4e-fill-paragraph

Improve mu4e-fill-paragraph for some corner-cases where there is
trailing whitespace. Patch by holtzermann17.
This commit is contained in:
djcb
2016-08-27 19:06:10 +03:00
parent ae7f649a4a
commit 37f11d642f

View File

@ -355,7 +355,9 @@ simply executes `fill-paragraph'."
(if mu4e-compose-format-flowed
(let ((fill-column (point-max))
(use-hard-newlines nil)); rfill "across" hard newlines
(delete-trailing-whitespace)
(fill-paragraph nil region))
(delete-trailing-whitespace)
(fill-paragraph nil region)))
(defun mu4e-toggle-use-hard-newlines ()