]> git.eshelyaron.com Git - emacs.git/commitdiff
(mail-strip-quoted-names): Preserve white space
authorRichard M. Stallman <rms@gnu.org>
Wed, 11 Oct 1995 21:05:53 +0000 (21:05 +0000)
committerRichard M. Stallman <rms@gnu.org>
Wed, 11 Oct 1995 21:05:53 +0000 (21:05 +0000)
after comma when stripping text outside of <> delims.

lisp/mail/mail-utils.el

index 26ad072293ee1652de232b66ee7f8cff57bbdaf4..80a1fbbc9ce37297448074f7cb3b28027b140b93 100644 (file)
@@ -116,7 +116,7 @@ Return a modified address list."
                 (mail-string-delete address
                                     pos (match-end 0)))))
        ;; Retain only part of address in <> delims, if there is such a thing.
-       (while (setq pos (string-match "\\(,\\|\\`\\)[^,]*<\\([^>,]*>\\)"
+       (while (setq pos (string-match "\\(,\\s-*\\|\\`\\)[^,]*<\\([^>,]*>\\)"
                                      address))
         (let ((junk-beg (match-end 1))
               (junk-end (match-beginning 2))