* shr.el (shr-render-td): Only do colours at the final rendering.
Should be slightly faster.
+ (shr-insert-table): Fix up TD background colours when doing the
+ vertical padding.
* gnus-art.el (article-date-ut): Protect against articles with no Date
header.
;; possibly.
(dotimes (i (- height (length lines)))
(end-of-line)
- (insert (make-string (string-width (car lines)) ? )
- shr-table-vertical-line)
+ (let ((start (point)))
+ (insert (make-string (string-width (car lines)) ? )
+ shr-table-vertical-line)
+ (when (nth 4 column)
+ (shr-put-color start (1- (point)) :background (nth 4 column))))
(forward-line 1)))))
(shr-insert-table-ruler widths)))
(list max
(count-lines (point-min) (point-max))
(split-string (buffer-string) "\n")
- (shr-collect-overlays))
+ (shr-collect-overlays)
+ (cdr (assq 'background-color shr-stylesheet)))
(list max
(shr-natural-width)))))))