aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/net/shr.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/net/shr.el b/lisp/net/shr.el
index b36dd56f09c..e9431325333 100644
--- a/lisp/net/shr.el
+++ b/lisp/net/shr.el
@@ -1791,7 +1791,8 @@ The preference is a float determined from `shr-prefer-media-type'."
1791 (let ((background nil)) 1791 (let ((background nil))
1792 (dolist (elem face) 1792 (dolist (elem face)
1793 (when (and (consp elem) 1793 (when (and (consp elem)
1794 (eq (car elem) :background)) 1794 (eq (car elem) :background)
1795 (not background))
1795 (setq background (cadr elem)))) 1796 (setq background (cadr elem))))
1796 (and background 1797 (and background
1797 (list :background background)))))) 1798 (list :background background))))))