]> git.eshelyaron.com Git - emacs.git/commitdiff
shr.el (shr-render-td): Only delete space at the end of the TD.
authorLars Magne Ingebrigtsen <larsi@gnus.org>
Wed, 6 Oct 2010 13:21:07 +0000 (13:21 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Wed, 6 Oct 2010 13:21:07 +0000 (13:21 +0000)
lisp/gnus/ChangeLog
lisp/gnus/shr.el

index 5e6a1e488f825e22cb47aacc78b23e564d98049b..08c5282728e775a6fdf4ead5ff6d0527860f9f47 100644 (file)
@@ -1,6 +1,7 @@
 2010-10-06  Lars Magne Ingebrigtsen  <larsi@gnus.org>
 
        * shr.el (shr-insert): Get 'space transition right.
+       (shr-render-td): Only delete space at the end of the TD.
 
        * nnimap.el (nnimap-open-connection): Prepare to support
        open-gnutls-stream.
index e0bb868f40e372bac4cdfd418654971e3cb43e4c..1c496ced543f4dd82688be70535e0e5d3a4150c2 100644 (file)
@@ -553,8 +553,10 @@ Return a string with image data."
     (let ((shr-width width)
          (shr-indentation 0))
       (shr-generic cont))
-    (while (re-search-backward "\n *$" nil t)
-      (delete-region (match-beginning 0) (match-end 0)))
+    (delete-region
+     (point)
+     (+ (point)
+       (skip-chars-backward " \t\n")))
     (goto-char (point-min))
     (let ((max 0))
       (while (not (eobp))