Fold after 71st (not 72nd) char, since we need insert an "=".
authorShengHuo ZHU <zsh@cs.rochester.edu>
Tue, 5 Oct 1999 07:46:54 +0000 (07:46 +0000)
committerShengHuo ZHU <zsh@cs.rochester.edu>
Tue, 5 Oct 1999 07:46:54 +0000 (07:46 +0000)
Double check eobp.

lisp/ChangeLog
lisp/qp.el

index e025db3..4b841f7 100644 (file)
@@ -1,3 +1,7 @@
+1999-10-05  Shenghuo ZHU  <zsh@cs.rochester.edu>
+
+       * qp.el (quoted-printable-encode-region): Check eobp.
+
 1999-10-03  Shenghuo ZHU  <zsh@cs.rochester.edu>
 
        * nntp.el (nntp-retrieve-headers-with-xover): Fix hanging problem.
index 18c66b7..56203e9 100644 (file)
@@ -99,11 +99,12 @@ matched by that regexp."
          (end-of-line)
          (while (> (current-column) 72)
            (beginning-of-line)
-           (forward-char 72)
+           (forward-char 71) ;; 71 char plus an "="
            (search-backward "=" (- (point) 2) t)
            (insert "=\n")
            (end-of-line))
-         (forward-line))))))
+         (unless (eobp)
+           (forward-line)))))))
 
 (defun quoted-printable-encode-string (string)
  "QP-encode STRING and return the results."