# HG changeset patch # User Katsumi Yamaoka # Date 1286371267 0 # Node ID 647b7ac5007c27c93e1da32e3ff539961800d46c # Parent 5d585a9641744f7dcf71fdae503673b1ee31c7da shr.el (shr-render-td): Only delete space at the end of the TD. diff -r 5d585a964174 -r 647b7ac5007c lisp/gnus/ChangeLog --- a/lisp/gnus/ChangeLog Wed Oct 06 13:13:11 2010 +0000 +++ b/lisp/gnus/ChangeLog Wed Oct 06 13:21:07 2010 +0000 @@ -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 -r 5d585a964174 -r 647b7ac5007c lisp/gnus/shr.el --- a/lisp/gnus/shr.el Wed Oct 06 13:13:11 2010 +0000 +++ b/lisp/gnus/shr.el Wed Oct 06 13:21:07 2010 +0000 @@ -553,8 +553,10 @@ (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))