(shr-insert): \r is also not inserted, so don't try to delete it.
authorLars Magne Ingebrigtsen <larsi@gnus.org>
Tue, 9 Oct 2012 01:57:18 +0000 (03:57 +0200)
committerLars Magne Ingebrigtsen <larsi@gnus.org>
Tue, 9 Oct 2012 01:57:18 +0000 (03:57 +0200)
lisp/ChangeLog
lisp/shr.el

index 37b7aaf..bbabc4c 100644 (file)
@@ -1,3 +1,8 @@
+2012-10-09  Lars Magne Ingebrigtsen  <larsi@gnus.org>
+
+       * shr.el (shr-insert): \r is also not inserted, so don't try to delete
+       it.
+
 2012-10-06  Glenn Morris  <rgm@gnu.org>
 
        * gnus-notifications.el (gnus-notifications):
index e7a6c5d..0370455 100644 (file)
@@ -391,7 +391,7 @@ size, and full-buffer size."
            (shr-indent))
          (end-of-line))
        (insert " ")))
-    (unless (string-match "[ \t\n ]\\'" text)
+    (unless (string-match "[ \t\r\n ]\\'" text)
       (delete-char -1)))))
 
 (defun shr-find-fill-point ()