* mu4e: don't add rogue \n where re-editing

This commit is contained in:
djcb 2014-05-04 10:51:44 -07:00
parent abe7ed306d
commit 5ab30cbc09
2 changed files with 1 additions and 2 deletions

View File

@ -356,7 +356,6 @@ tempfile)."
;; insert mail-header-separator, which is needed by message mode to separate
;; headers and body. will be removed before saving to disk
(mu4e~draft-insert-mail-header-separator)
(insert "\n") ;; insert a newline after header separator
;; include files -- e.g. when forwarding a message with attachments,
;; we take those from the original.
(save-excursion

View File

@ -254,7 +254,7 @@ separator is never written to the message file. Also see
;; search for the first empty line
(goto-char (point-min))
(if (search-forward-regexp "^$" nil t)
(replace-match (concat sepa))
(replace-match sepa)
(progn ;; no empty line? then prepend one
(goto-char (point-max))
(insert "\n" sepa))))))