changeset 23010:196f32d1873f

(nntp-encode-text): Properly encode outgoing text by putting CR at the end of all lines.
author Richard M. Stallman <rms@gnu.org>
date Thu, 13 Aug 1998 06:20:33 +0000
parents 9ffaa505edc7
children fe3128dafc96
files lisp/gnus/nntp.el
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/gnus/nntp.el	Thu Aug 13 05:05:44 1998 +0000
+++ b/lisp/gnus/nntp.el	Thu Aug 13 06:20:33 1998 +0000
@@ -906,7 +906,12 @@
       (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)