* net/shr.el (shr-insert): Make sure the space inserted has the
right font (for width).
+ (shr-fill-line): Preserve background colours when indenting/folding.
2015-02-10 Lars Ingebrigtsen <larsi@gnus.org>
(point) 'shr-continuation-indentation))
start)
(put-text-property (point) (1+ (point)) 'shr-indentation nil)
- (shr-indent)
+ (let ((face (get-text-property (point) 'face))
+ (background-start (point)))
+ (shr-indent)
+ (when face
+ (put-text-property background-start (point) 'face
+ `,(shr-face-background face))))
(setq start (point))
(setq shr-indentation (or continuation shr-indentation))
(shr-vertical-motion shr-internal-width)
;; Success; continue.
(when (= (preceding-char) ?\s)
(delete-char -1))
- (insert "\n")
- (shr-indent)
+ (let ((face (get-text-property (point) 'face))
+ (background-start (point)))
+ (insert "\n")
+ (shr-indent)
+ (when face
+ (put-text-property background-start (point) 'face
+ `,(shr-face-background face))))
(setq start (point))
(shr-vertical-motion shr-internal-width)
(when (looking-at " $")