When the background color isn't explicit, use a fixed background.
authorLars Magne Ingebrigtsen <larsi@quimbies.gnus.org>
Sun, 5 Dec 2010 16:40:45 +0000 (17:40 +0100)
committerLars Magne Ingebrigtsen <larsi@quimbies.gnus.org>
Sun, 5 Dec 2010 16:40:45 +0000 (17:40 +0100)
lisp/ChangeLog
lisp/shr.el

index 562cc60..6b71289 100644 (file)
@@ -9,6 +9,8 @@
        (shr-tag-body): Use post-hoc colorizations.
        (shr-tag-body): Set up a style sheet based on bgcolor/fgcolor.
        (shr-put-color-1): Don't overwrite old colors.
+       (shr-colorize-region): When the background color isn't explicit, use
+       a fixed background.
 
        * gnus-util.el (gnus-output-to-mail): Require nnmail before using
        nnmail variables.
index 7b7e008..0b2fa93 100644 (file)
@@ -587,9 +587,7 @@ ones, in case fg and bg are nil."
 
 (defun shr-colorize-region (start end fg &optional bg)
   (when fg
-    (let ((new-colors
-          (shr-color-check fg (or bg
-                                  (frame-parameter nil 'background-color)))))
+    (let ((new-colors (shr-color-check fg bg)))
       (when new-colors
        (shr-put-color start end :foreground (cadr new-colors))
        (when bg