Commit a3bf4a38 authored by Lars Ingebrigtsen's avatar Lars Ingebrigtsen

Make backgrounds extend to the end of the lines in shr

* lisp/net/shr.el (shr-face-background): Faces can also be on
the form `(:background "#fff)' (bug#22547).
parent 9935e7cc
......@@ -1786,13 +1786,15 @@ The preference is a float determined from `shr-prefer-media-type'."
(defun shr-face-background (face)
(and (consp face)
(let ((background nil))
(dolist (elem face)
(when (and (consp elem)
(eq (car elem) :background))
(setq background (cadr elem))))
(and background
(list :background background)))))
(or (and (plist-get face :background)
(list :background (plist-get face :background)))
(let ((background nil))
(dolist (elem face)
(when (and (consp elem)
(eq (car elem) :background))
(setq background (cadr elem))))
(and background
(list :background background))))))
(defun shr-expand-alignments (start end)
(while (< (setq start (next-single-property-change
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment