]> git.eshelyaron.com Git - emacs.git/commitdiff
(mail-parse-comma-list):
authorKarl Heuer <kwzh@gnu.org>
Thu, 4 Dec 1997 05:26:28 +0000 (05:26 +0000)
committerKarl Heuer <kwzh@gnu.org>
Thu, 4 Dec 1997 05:26:28 +0000 (05:26 +0000)
Treat newlines and tabs as whitespace.

lisp/mail/mail-utils.el

index a970f866dc9ec66934a9fcbdf19b879e2284bd13..002c37d8125a2a9f9b10d626250c7ede3b83eb92 100644 (file)
@@ -258,16 +258,16 @@ If 4th arg LIST is non-nil, return a list of all such fields."
 (defun mail-parse-comma-list ()
   (let (accumulated
        beg)
-    (skip-chars-forward " ")
+    (skip-chars-forward " \t\n")
     (while (not (eobp))
       (setq beg (point))
       (skip-chars-forward "^,")
-      (skip-chars-backward " ")
+      (skip-chars-backward " \t\n")
       (setq accumulated
            (cons (buffer-substring-no-properties beg (point))
                  accumulated))
       (skip-chars-forward "^,")
-      (skip-chars-forward ", "))
+      (skip-chars-forward ", \t\n"))
     accumulated))
 
 (defun mail-comma-list-regexp (labels)