* shr.el (shr-render-td): Use a cache for the table rendering function
to avoid getting an exponential rendering behaviour in nested tables.
(shr-insert): Rework the line-breaking algorithm.
+ (shr-insert): Don't leave trailing spaces.
2010-10-07 Katsumi Yamaoka <yamaoka@jpl.org>
(when (> shr-indentation 0)
(shr-indent))
(end-of-line)))
- (insert " "))))))
+ (insert " "))
+ (unless (string-match "[ \t\n]\\'" text)
+ (delete-char -1))))))
(defun shr-ensure-newline ()
(unless (zerop (current-column))