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.
(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))