GNU bug report logs -
#19752
25.0.50; fonts in HTML
Previous Next
Reported by: rms <at> gnu.org
Date: Tue, 3 Feb 2015 01:11:02 UTC
Severity: normal
Found in version 25.0.50
Done: Stefan Kangas <stefan <at> marxist.se>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Richard Stallman <rms <at> gnu.org> writes:
> I received message in Rmail which had this:
>
> <body bgcolor="#ebebeb" class="ready" margin="0" padding="0" style="background:#ebebeb; margin:0; padding:0;">
>
> and a lot of the text was unreadable on the tty. This seems to happen
> with a lot of messages (even some that are not spam).
>
> Setting shr-inhibit-decoration to t made it possible to read the text.
Looking at this a bit more, I'm going to guess that the problem is that
on consoles, Emacs doesn't have enough colours to display this stuff
sensibly.
What does (display-color-cells) return for you?
If this is the case, we could fix this issue with something like the
patch below.
diff --git a/lisp/net/shr.el b/lisp/net/shr.el
index 0cd15dcfe0..d4c99219bc 100644
--- a/lisp/net/shr.el
+++ b/lisp/net/shr.el
@@ -72,9 +72,9 @@ shr-discard-aria-hidden
:version "27.1"
:type 'boolean)
-(defcustom shr-use-colors t
+(defcustom shr-use-colors (> (display-color-cells) 256)
"If non-nil, respect color specifications in the HTML."
- :version "26.1"
+ :version "27.1"
:type 'boolean)
(defcustom shr-table-horizontal-line nil
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
This bug report was last modified 4 years and 283 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.