(mime-edit-normalize-body): Failed to canonicalize empty lines.
authorshuhei-k <shuhei-k>
Mon, 10 Aug 1998 14:57:52 +0000 (14:57 +0000)
committershuhei-k <shuhei-k>
Mon, 10 Aug 1998 14:57:52 +0000 (14:57 +0000)
mime-edit.el

index 0d28389..94ea968 100644 (file)
@@ -2054,11 +2054,8 @@ Content-Transfer-Encoding: 7bit
                  (save-restriction
                    (narrow-to-region beg (mime-edit-content-end))
                    (goto-char beg)
-                   (while (re-search-forward "\\([^\r]\\)\n" nil t)
-                     (replace-match
-                      (concat (buffer-substring (match-beginning 0)
-                                                (match-end 1)) "\r\n"))
-                     )))
+                   (while (re-search-forward "\\(\\=\\|[^\r]\\)\n" nil t)
+                     (replace-match "\\1\r\n"))))
              (goto-char beg)
              (mime-encode-region beg (mime-edit-content-end) encoding)
              (mime-edit-define-encoding encoding)