From: Richard M. Stallman Date: Thu, 13 Aug 1998 06:20:33 +0000 (+0000) Subject: (nntp-encode-text): Properly encode outgoing text by X-Git-Tag: emacs-20.3~69 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=45926d06f4a1ea6885a08b49417b161f584be8ee;p=emacs.git (nntp-encode-text): Properly encode outgoing text by putting CR at the end of all lines. --- diff --git a/lisp/gnus/nntp.el b/lisp/gnus/nntp.el index eeb93748af3..4067d566eb6 100644 --- a/lisp/gnus/nntp.el +++ b/lisp/gnus/nntp.el @@ -906,7 +906,12 @@ This function is supposed to be called from `nntp-server-opened-hook'." (insert "\n")) ;; Insert `.' at end of buffer (end of text mark). (goto-char (point-max)) - (insert "." nntp-end-of-line))) + (insert ".\n") + (goto-char (point-min)) + (while (not (eobp)) + (end-of-line) + (delete-char 1) + (insert nntp-end-of-line)))) (defun nntp-retrieve-headers-with-xover (articles &optional fetch-old) (set-buffer nntp-server-buffer)