From: Lars Magne Ingebrigtsen Date: Wed, 6 Oct 2010 13:21:07 +0000 (+0000) Subject: shr.el (shr-render-td): Only delete space at the end of the TD. X-Git-Tag: emacs-pretest-24.0.90~104^2~275^2~438^2~46^2~154 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=356242428b39c85760780f961ba40672d8e2d8b3;p=emacs.git shr.el (shr-render-td): Only delete space at the end of the TD. --- diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 5e6a1e488f8..08c5282728e 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog @@ -1,6 +1,7 @@ 2010-10-06 Lars Magne Ingebrigtsen * 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. diff --git a/lisp/gnus/shr.el b/lisp/gnus/shr.el index e0bb868f40e..1c496ced543 100644 --- a/lisp/gnus/shr.el +++ b/lisp/gnus/shr.el @@ -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))