* eword-encode.el (mime-encode-header-in-buffer):
authoryoichi <yoichi>
Fri, 7 Feb 2003 16:39:54 +0000 (16:39 +0000)
committeryoichi <yoichi>
Fri, 7 Feb 2003 16:39:54 +0000 (16:39 +0000)
Do not eliminate white spaces.

ChangeLog
eword-encode.el

index 464b480..8e3ec14 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2003-02-05  Yoichi NAKAYAMA  <yoichi@eken.phys.nagoya-u.ac.jp>
+
+       * eword-encode.el (mime-encode-header-in-buffer):
+       Do not eliminate white spaces.
+
 2002-11-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
 
        * eword-encode.el (tm-eword::words-to-ruled-words): New
index e95b458..bf379f6 100644 (file)
@@ -687,16 +687,18 @@ It refer variable `mime-field-encoding-method-alist'."
       (goto-char (point-min))
       (let ((default-cs (mime-charset-to-coding-system default-mime-charset))
            bbeg end field-name)
-       (while (re-search-forward std11-field-head-regexp nil t)
+       (while (re-search-forward
+               (concat "\\(" std11-field-head-regexp "\\)" " ?")
+               nil t)
          (setq bbeg (match-end 0)
-               field-name (buffer-substring (match-beginning 0) (1- bbeg))
+               field-name (buffer-substring (match-beginning 0) (1- (match-end 1)))
                end (std11-field-end))
          (and (delq 'ascii (find-charset-region bbeg end))
               (let ((method (eword-find-field-encoding-method
                              (downcase field-name))))
                 (cond ((eq method 'mime)
                        (let* ((field-body
-                              (buffer-substring-no-properties bbeg end))
+                               (buffer-substring-no-properties bbeg end))
                               (encoded-body
                                (mime-encode-field-body
                                 field-body field-name)))