From: shuhei-k Date: Mon, 2 Dec 1996 15:20:12 +0000 (+0000) Subject: (std11-unfold-string): Save LWSP-char. X-Git-Tag: XEmacs-20_3-b6~19 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=d7a9b0b9a842b0760436dc85acdd3a8126828223;hp=b85edd796cfb18fe7ad04943a7ab0825516b0f20;p=elisp%2Fapel.git (std11-unfold-string): Save LWSP-char. --- diff --git a/std11.el b/std11.el index b331657..7342229 100644 --- a/std11.el +++ b/std11.el @@ -4,7 +4,7 @@ ;; Author: MORIOKA Tomohiko ;; Keywords: mail, news, RFC 822, STD 11 -;; Version: $Id: std11.el,v 0.35 1996-11-19 07:08:47 morioka Exp $ +;; Version: $Id: std11.el,v 0.36 1996-12-02 15:20:12 shuhei-k Exp $ ;; This file is part of MU (Message Utilities). @@ -113,8 +113,11 @@ header separator. [std11.el]" (defun std11-unfold-string (string) "Unfold STRING as message header field. [std11.el]" (let ((dest "")) - (while (string-match "\n\\s +" string) - (setq dest (concat dest (substring string 0 (match-beginning 0)) " ")) + (while (string-match "\n\\([ \t]\\)" string) + (setq dest (concat dest + (substring string 0 (match-beginning 0)) + (match-string 1 string) + )) (setq string (substring string (match-end 0))) ) (concat dest string)