mml.el (mml-preview): Fix last change.
authorKatsumi Yamaoka <yamaoka@jpl.org>
Fri, 22 Oct 2010 04:29:41 +0000 (04:29 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Fri, 22 Oct 2010 04:29:41 +0000 (04:29 +0000)
lisp/mml.el

index 0ef64f2..7314675 100644 (file)
@@ -1494,12 +1494,11 @@ or the `pop-to-buffer' function."
         (copy-sequence (if (message-news-p)
                            message-required-news-headers
                          message-required-mail-headers)))
-       (if (and (not article-editing)
-                (re-search-forward
-                 (concat "^" (regexp-quote mail-header-separator) "\n")
-                 nil t))
-           (replace-match "\n"))
-       (setq mail-header-separator "")
+       (unless article-editing
+         (if (re-search-forward
+              (concat "^" (regexp-quote mail-header-separator) "\n") nil t)
+             (replace-match "\n"))
+         (setq mail-header-separator ""))
        (message-sort-headers)
        (mml-to-mime))
       (if raw