GNU bug report logs - #19752
25.0.50; fonts in HTML

Previous Next

Package: emacs;

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.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 19752 in the body.
You can then email your comments to 19752 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#19752; Package emacs. (Tue, 03 Feb 2015 01:11:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to rms <at> gnu.org:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Tue, 03 Feb 2015 01:11:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Richard Stallman <rms <at> gnu.org>
To: bug-gnu-emacs <at> gnu.org
Subject: 25.0.50; fonts in HTML
Date: Mon, 02 Feb 2015 20:10:15 -0500
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.


Here is the entire message.

X-Spam-Status: No, score=0.5 required=5.0 tests=BAYES_99,BAYES_999,
	BAYES_99_HTML,HTML_MESSAGE,MIME_HTML_ONLY,RCVD_IN_DNSWL_NONE,
	RCVD_IN_RP_CERTIFIED,RCVD_IN_RP_SAFE,T_DKIM_INVALID,T_RP_MATCHES_RCVD
	autolearn=disabled version=3.3.2
Date: Mon, 02 Feb 2015 12:57:18 +0000
From: via Brewster <stay-in-touch <at> brewster.com>
Reply-to: stay-in-touch <at> brewster.com
To: rms <at> gnu.org
Message-ID: <54cf742ec7f89_41273f89120111f46984e9 <at> prod-rs-r05.ihost.brewster.com.mail>
Subject: Re: Richard's contact info 
content-type: text/html; charset="UTF-8"

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
	<title>Join Brewster</title>
</head>
<body bgcolor="#ebebeb" class="ready" margin="0" padding="0" style="background:#ebebeb; margin:0; padding:0;">
<table id="wrapper" border="0" cellpadding="0" cellspacing="0" style="text-algin: center;" width="100%"><!-- wrapper -->
	<tbody>
		<tr align="center">
			<td>
			<table border="0" cellpadding="0" cellspacing="0" style="margin-right:auto; margin-left:auto;"><!-- inner -->
				<tbody>
					<tr>
						<td style="height:30px;">&nbsp;</td>
					</tr>
					<tr><!-- page -->
						<td>
						<table border="0" cellpadding="0" cellspacing="0" style="text-align:center; background:#fff;border:#e3e3e3 solid 1px;border-radius: 7px;margin:0 auto;padding:0px;" width="380">
							<tbody>
								<tr><!-- logo -->
									<td style="padding: 20px 0px; border-bottom:#e3e3e3 solid 1px;"><img alt="" src="https://www.brewster.com/assets/sharing-email/logo-name-email.png" /></td>
								</tr>
								<!-- end logo -->
								<tr><!-- content -->
									<td>
									<table border="0" cellpadding="0" cellspacing="0" style="background:#fff;border-radius:7px;" width="380">
										<tbody>
											<tr>
												<td style="width: 35px;">&nbsp;</td>
												<td>
												<table border="0" cellpadding="0" cellspacing="0" width="310" style="text-align: center;background:#fff;">
													<tbody>
														<tr>
															<td style="height:40px;">&nbsp;</td>
														</tr>
														<tr align="center"><!-- profile picture -->
															<td style="text-align:center;"><img alt="" height="80" src="https://d1m45cu0ml8qff.cloudfront.net/silhouette/resize_to_fill_center_on_faces/60x60" style="border-radius:50%; border:#e3e3e3 solid 1px;" width="80" /></td>
														</tr>
														<tr>
															<td style="height:20px;">&nbsp;</td>
														</tr>
														<!-- End profile picture and bottom padding -->
														<tr>
															<td>
															<p style="margin-top:0px;font-size:17px;line-height: 26px;font-family: HelveticaNeue-Light, Helvetica Neue, Helvetica, Arial, sans-serif;color: #636363; font-weight:lighter;text-align:center;">
																 asked us to reach out and confirm they have your latest info
															</p>
															<p style="margin-top:0px;font-size:17px;line-height: 26px;font-family: HelveticaNeue-Light, Helvetica Neue, Helvetica, Arial, sans-serif;color: #636363; font-weight:lighter;text-align:center;">
																Here&#39;s what they have for you now:
															</p>
															</td>
														</tr>
														<tr>
															<td style="height:20px;">&nbsp;</td>
														</tr>
														<tr>
															<td style="border-bottom:#e3e3e3 solid 1px;border-top:#e3e3e3 solid 1px;padding-bottom:20px;">
															
															<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></head>
<body style='color:#000;font-family:"Helvetica Neue Light", "HelveticaNeue-Light", "Helvetica Neue", Helvetica, Arial, sans-serif;font-size:15px;line-height:22px'><table class="inviteTable" style="cellpadding:0;cellspacing:0;border:none;width:100%;padding-top:20px;background:#ffffff">
<tr class="inviteListElement" style="margin:0 auto;padding-botton:10px;min-height:33px;max-height:33px">
<td class="inviteIcon" style="border-collapse:collapse;min-width:30px;width:30px;height:33px;background-color:white;clear:both">
<img src="https://app.brewster.com/images/assets/email/email.png" style="display:block">
</td>
<td class="inviteText normalInviteText" style='border-collapse:collapse;max-height:33px;vertical-align:baseline;line-height:29px;font-size:17px;min-height:33px;margin:0 auto 0;height:33px;outline:none;font-family:"Helvetica Neue Light", "HelveticaNeue-Light", "Helvetica Neue", Helvetica, Arial, sans-serif;color:#636363;max-width:180px;text-align:left'>
<div class="textContentWrapper" style="overflow:hidden;text-overflow:ellipsis;white-space:nowrap;word-wrap:break-word;word-break:break-all;max-height:33px">
<a class="inviteLink" href="#" style='max-height:33px;color:inherit;text-decoration:none;font-family:"Helvetica Neue Light", "HelveticaNeue-Light", "Helvetica Neue", Helvetica, Arial, sans-serif;'>
rms <at> gnu.org
</a>
</div>
</td>
</tr>
<tr class="inviteListElement" style="margin:0 auto;padding-botton:10px;min-height:33px;max-height:33px">
<td class="inviteIcon" style="border-collapse:collapse;min-width:30px;width:30px;height:33px;background-color:white;clear:both">
<img src="https://app.brewster.com/images/assets/email/phone-red.png" style="display:block">
</td>
<td class="inviteText placeholderInviteText" style='border-collapse:collapse;max-height:33px;vertical-align:baseline;line-height:29px;font-size:17px;min-height:33px;margin:0 auto 0;height:33px;outline:none;font-family:"Helvetica Neue Light", "HelveticaNeue-Light", "Helvetica Neue", Helvetica, Arial, sans-serif;text-align:left;color:#f26522;max-width:180px'>
<div class="textContentWrapper" style="overflow:hidden;text-overflow:ellipsis;white-space:nowrap;word-wrap:break-word;word-break:break-all;max-height:33px">
<a class="inviteLink" href="#" style='max-height:33px;color:inherit;text-decoration:none;font-family:"Helvetica Neue Light", "HelveticaNeue-Light", "Helvetica Neue", Helvetica, Arial, sans-serif'>
Mobile Number
</a>
</div>
</td>
</tr>
</table></body>
</html>

															    
															</td>
														</tr>
														<tr>
															<td style="height:40px;">&nbsp;</td>
														</tr>
														<tr><!-- button -->
															<td style="background:#4098bc;border-radius: 5px; padding: 15px 0px;font-size:16px;text-align:center;font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-weight:bold;"><a class="action" href="http://email.brewster.com/wf/click?upn=5Y9vRPksPl8YR2cxJ-2FiKxdqbiLUxYd3lymLWu-2B64wsQCiTnNTtDmKH6a24P7SRQhVL0ClR3axMQt9vdO8-2B89sSI5fUsiUWcXiIJrbHJF0cslA5n069CpLIlMd1HBLoXbcLl78HIs5IfM3YMj6G6mnUczVsuhv1taOPkeOkfFawTfP2L2bynsXSGg8w-2BwrEioBPfkPxw23cg3yCihTRiLnR3ERDIoJKX9rAfF8gB7xFKvrrJPaeoKMQ6VVmKUBYbzpeGrvQXaXJR74NMyp3jUDY-2FcwNcb5RB0bmqJFc3n4oR5kYWQoIvRqrjlcXtDcK9wy8UyqFOLJb2qTgRGjbIb-2B0zsyGhP59UvxiUd8AZ7My1LnO3hhllE31RCjIvvqit5_4vKmXSHxNtX8ogbiTZEEmSRtwPrMxVBbf7NAGFxtmSKI8q4zNPP47bVm8WunbBOqi51zbLNANV7XEJmOmTDbMiA5lNY0psYXSGaHCubrAEgxv5GlYTxtF4enRuy87o4KVLL4GPkvnXKjP-2Be3r59Ae2-2BeSkU-2BNwnoKqUGNOgLLi4Gvtks2D-2BJEBxQE7Vi9Na7VzLzTc6R1l3EMTLA3LJNS5ybTkssMfDcvcS6lQAPA0xQlSSfXG5ltoQIK2A68gwQi9-2FMX99rHgOqb8HiwIVwannqTf4ri87t8qosXtD0D2EthIOWYJ6-2FDwZ9ABezDZHGUmgklOAINxa4E4gJ0L604A-3D-3D" style="color:#fff;text-decoration: none;padding:15px 0px;">Confirm / Update</a></td>
														</tr>
														<!-- button end -->
														<tr>
															<td style="font-size: 11px;color: #cfcfcf;font-style: italic;text-align: center;padding-top: 5px;font-family: HelveticaNeue-Light, Helvetica Neue, Helvetica, Arial, sans-serif;">For your safety, this link expires in 48 hours</td>
														</tr>
														<tr>
															<td style="height:40px;">&nbsp;</td>
														</tr>
													</tbody>
												</table>
												</td>
												<td style="width: 35px;">&nbsp;</td>
											</tr>
										</tbody>
									</table>
									</td>
								</tr>
								<!-- end content -->
								<tr><!-- Feature on -->
									<td>
									<table border="0" cellpadding="0" cellspacing="0" style="background:#f7f7f7; border-top:#e3e3e3 solid 1px;" width="380">
										<tbody>
											<tr>
												<td style="height:25px;">&nbsp;</td>
											</tr>
											<tr>
												<td style="font-size: 11px; color:#9a9a9a;font-family: HelveticaNeue-Light, Helvetica Neue, Helvetica, Arial, sans-serif;padding-bottom: 15px;text-align:center;">Featured on:</td>
											</tr>
											<tr>
												<td align="center" class="footer" width="380">
													<img alt="The New York Times" class="feature" src="https://app.brewster.com/images/assets/landing/_times.png" style="display: inline;width: auto;height: 22px;padding: 5px;" height="22" /> 
													<img alt="Business Insider" class="feature" src="https://app.brewster.com/images/assets/landing/_bi.png" style="display: inline;width: auto;height: 22px;padding: 5px;" height="22" /> 
													<img alt="Fast Co." class="feature" src="https://app.brewster.com/images/assets/landing/_fastco.png" style="display: inline;width: auto;height: 22px;padding: 5px;" height="22" /> 
													<img alt="TechChrunch" class="feature" src="https://app.brewster.com/images/assets/landing/_techcrunch.png" style="display: inline;width: auto;height: 22px;padding: 5px 5px 0 5px;" height="22" /> 
													<img alt="All Thinks Digital" class="feature" src="https://app.brewster.com/images/assets/landing/_allthingsd.png" style="display: inline;width: auto;height: 22px;padding: 5px 5px 0 5px;" height="22" />
												</td>
											</tr>
											<tr>
												<td style="height:25px;">&nbsp;</td>
											</tr>
										</tbody>
									</table>
									</td>
								</tr>
								<!-- Feature on end -->
								<tr>
									<td>
									<table border="0" cellpadding="0" cellspacing="0" style="background:#f7f7f7;border-bottom-right-radius:7px;border-bottom-left-radius:7px; border-top:#e3e3e3 solid 1px;" width="380">
										<tbody>
											<tr>
												<td rowspan="6" style="width:25px;">&nbsp;</td>
												<td style="height:30px;">&nbsp;</td>
												<td rowspan="6" style="width:25px;">&nbsp;</td>
											</tr>
											<tr>
												<td width="310" style="color:#858585;font-family: Helvetica Neue, Helvetica, Arial, sans-serif;font-size: 11px;line-height:28px;text-align:center;"><span style="font-weight:bold;">Why did you receive this email?</span><br />
												The sender wanted to confirm that above contact info is up-to-date. Your displayed contact details are what they currently have for you. Your info is 100% secure and private between you and sender. Please email us with questions at <a href="mailto:support <at> brewster.com" style="color:#4098bc;text-decoration:none;">support <at> brewster.com</a>.<br />
												Happy staying in touch!</td>
											</tr>
											<tr>
												<td style="height:30px;">&nbsp;</td>
											</tr>
										</tbody>
									</table>
									</td>
								</tr>
							</tbody>
						</table>
						</td>
					</tr>
					<!-- end page -->
					<tr align="center"><!-- footer -->
						<td>
						<table border="0" cellpadding="0" cellspacing="0" style="text-align:center;" width="380">
							<tbody>
								<tr>
									<td rowspan="4" style="height:40px;width:20px;">&nbsp;</td>
									<td style="height:40px;">&nbsp;</td>
									<td rowspan="4" style="height:40px;width:20px;">&nbsp;</td>
								</tr>
								<tr>
									<td><img alt="Brewster Logo" height="19" src="https://app.brewster.com/images/assets/email/footer-logo.png" width="100" />
									<p style="font-size: 11px; color:#858585;font-family: Helvetica Neue, Helvetica, Arial, sans-serif;font-weight:bold;line-height:25px;text-align: center;">Your Contacts, Synced Anywhere</p>

									<p style="font-size: 11px; color:#858585;font-family: Helvetica Neue, Helvetica, Arial, sans-serif;text-align:center;">11 East 4th St. #2F New York, NY 10003</p>
									</td>
								</tr>
								<tr>
									<td style="height:25px;">&nbsp;</td>
								</tr>
								<tr style="text-align:center;">
									<td>
									<p style="padding: 10px;margin: 0;color: black;font-size: 15px;line-height: 22px;text-align:center;"><a class="footer-text" href="http://email.brewster.com/wf/unsubscribe?upn=4vKmXSHxNtX8ogbiTZEEmSRtwPrMxVBbf7NAGFxtmSKI8q4zNPP47bVm8WunbBOqHRjGaaNeFMlnh-2FTAczf4D2fn5QfDgm8JdEYmcw11jhDd7DY0n7qusXlD1nE384KOddNj7QGxJo0csXTkorFSHxXu05vSvu-2FKsF-2BoYdRnOIGVnyq5bzy6iSCpi3cu5yGStfIf8SPBvzmjidiMA5jA4VlP41Z2SR4Tod3O2Yw0RwlycgfaqDTLSMH6jVIFta2toq5VTAiPojP0kqG-2Fcubn5YFaC1V82DPDYpQW4rP1o1t7CaqXe8WMDqRYhYDd6ShGJH2mnxCKOueNR14NUHCpLA-3D-3D" style="color: #9a9a9a;font-size: 11px;font-family: Helvetica Neue, Helvetica, Arial, sans-serif;">Unsubscribe</a></p>
									</td>
								</tr>
							</tbody>
						</table>
						</td>
					</tr>
					<!-- end footer -->
					<tr>
						<td style="height:30px;">&nbsp;</td>
					</tr>
				</tbody>
			</table>
			<!-- end inner --></td>
		</tr>
	</tbody>
</table>
<!-- end wrapper -->

<img src="http://email.brewster.com/wf/open?upn=4vKmXSHxNtX8ogbiTZEEmSRtwPrMxVBbf7NAGFxtmSKI8q4zNPP47bVm8WunbBOqbn2wOwfd9dcEKFCzNiaM1z6sCcjK1kHiG0Ipd2oAd5mw6LhPHpLZRavplAllvMGyDK1xhYU4IT5vfYQk-2BzxB9xga2B8oaD7x4GbMdydoSM9dCM8J-2Bd2Idp12hdPkN-2BmoGMfA6FkPi4zJFI-2F7QXRZVnSFq0AtfaxSj1qBvXgsPmDBFZsVhiz8i6t1dWNDseEC2F4DZAqZFlZfyiaNxoPXJ0B3yA0jTNPkGIGqWzlsokqazHpTlxEa6ptJqD-2FcIFfuDA1v3IXwkeWgdC322SgDuA-3D-3D" alt="" width="1" height="1" border="0" style="height:1px !important;width:1px !important;border-width:0 !important;margin-top:0 !important;margin-bottom:0 !important;margin-right:0 !important;margin-left:0 !important;padding-top:0 !important;padding-bottom:0 !important;padding-right:0 !important;padding-left:0 !important;"/>
</body>
</html>






In GNU Emacs 25.0.50.1 (i686-pc-linux-gnu, GTK+ Version 2.24.10)
 of 2015-02-01 on rms
System Description:	Trisquel GNU/Linux 6.0.1, Toutatis

Configured using:
 `configure 'CFLAGS=-g3 -O0''

Configured features:
XPM JPEG TIFF GIF PNG RSVG SOUND GPM DBUS GCONF GSETTINGS NOTIFY
LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB

Important settings:
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8-unix

Major mode: RMAIL

Minor modes in effect:
  shell-dirtrack-mode: t
  diff-auto-refine-mode: t
  gpm-mouse-mode: t
  tooltip-mode: t
  global-eldoc-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  buffer-read-only: t
  line-number-mode: t
  abbrev-mode: t

Recent messages:
Mark saved where search started
Mark set
Mark saved where search started
Quit [2 times]
Grep finished (matches found)
Quit
Grep finished (matches found) [2 times]
Mark set
Mark saved where search started [4 times]
Mark set

Load-path shadows:
None found.

Features:
(shadow emacsbug wid-edit descr-text epa-mail quail ispell battery
cal-move cal-menu calendar cal-loaddefs doc-view image-mode url-auth
url-queue url-cache url url-proxy url-privacy url-expand url-methods
url-history url-cookie url-domsuf mailcap pp cc-mode cc-fonts cc-guess
cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs
eieio-opt speedbar sb-image ezimage find-func apropos help-mode debug
bug-reference add-log parse-time vc-cvs sgml-mode rmailsum jka-compr
shell pcomplete grep rmailout dabbrev mailalias epa derived epg
shr-color color dframe whitespace vc vc-git compare-w diff-mode
easy-mmode vc-dispatcher vc-bzr misearch multi-isearch dired-aux
compile comint ansi-color ring mule-util url-util url-parse
auth-source cl-macs eieio byte-opt gv bytecomp byte-compile cl-extra
seq cconv eieio-core cl-generic gnus-util password-cache url-vars shr
dom cl-loaddefs cl-lib subr-x pcase browse-url qp rmailmm message
sendmail format-spec rfc822 mml easymenu mml-sec mm-decode mm-bodies
mm-encode mailabbrev gmm-utils mailheader mail-parse rfc2231 rmail
rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils dired t-mouse
package epg-config view time-date paren cus-start cus-load advice
help-fns tooltip eldoc electric uniquify ediff-hook vc-hooks
lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image
regexp-opt fringe tabulated-list newcomment elisp-mode lisp-mode
prog-mode register page menu-bar rfn-eshadow timer select scroll-bar
mouse jit-lock font-lock syntax facemenu font-core frame cham georgian
utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean
japanese hebrew greek romanian slovak czech european ethiopic indian
cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev
minibuffer cl-preloaded nadvice loaddefs button faces cus-face
macroexp files text-properties overlay sha1 md5 base64 format env
code-pages mule custom widget hashtable-print-readable backquote
make-network-process dbusbind gfilenotify dynamic-setting
system-font-setting font-render-setting move-toolbar gtk x-toolkit x
multi-tty emacs)

Memory information:
((conses 8 424139 77378)
 (symbols 24 39378 21)
 (miscs 20 1040 4299)
 (strings 16 65201 7627)
 (string-bytes 1 3808727)
 (vectors 8 31514)
 (vector-slots 4 1431088 47202)
 (floats 8 347 805)
 (intervals 28 66631 1012)
 (buffers 520 84)
 (heap 1024 20119 1794))
[[[ To any NSA and FBI agents reading my email: please consider    ]]]
[[[ whether defending the US Constitution against all enemies,     ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]


-- 
Dr Richard Stallman
President, Free Software Foundation
51 Franklin St
Boston MA 02110
USA
www.fsf.org  www.gnu.org
Skype: No way! See stallman.org/skype.html.





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#19752; Package emacs. (Thu, 05 Feb 2015 17:27:02 GMT) Full text and rfc822 format available.

Message #8 received at 19752 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: rms <at> gnu.org
Cc: 19752 <at> debbugs.gnu.org
Subject: Re: bug#19752: 25.0.50; fonts in HTML
Date: Thu, 05 Feb 2015 19:26:32 +0200
> Date: Mon, 02 Feb 2015 20:10:15 -0500
> From: Richard Stallman <rms <at> gnu.org>
> 
> 
> 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.
> 
> 
> Here is the entire message.

If you still have the original mbox file for this message, please send
it as an attachment (via "M-x mail-add-attachment").  Copying text
from the rmail-view buffer produces invalid mbox files, with crucial
headers missing, so it is next to impossible to investigate these
problems, if they are related to Rmail.  (Problems related to and HTML
rendering by shr.el can still be investigated, but it is sometimes
hard to know which problems belong where.)

Likewise for the other bugs you filed regarding HTML mail.

Anyway, what is the background of your terminal, and how many colors
does it support?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#19752; Package emacs. (Fri, 06 Feb 2015 12:42:01 GMT) Full text and rfc822 format available.

Message #11 received at 19752 <at> debbugs.gnu.org (full text, mbox):

From: Richard Stallman <rms <at> gnu.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 19752 <at> debbugs.gnu.org
Subject: Re: bug#19752: 25.0.50; fonts in HTML
Date: Fri, 06 Feb 2015 07:41:37 -0500
[Message part 1 (text/plain, inline)]
[[[ To any NSA and FBI agents reading my email: please consider    ]]]
[[[ whether defending the US Constitution against all enemies,     ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]

  > If you still have the original mbox file for this message, please send
  > it as an attachment (via "M-x mail-add-attachment").

Here it is.

[foo.xmail (application/octet-stream, attachment)]
[Message part 3 (text/plain, inline)]
-- 
Dr Richard Stallman
President, Free Software Foundation
51 Franklin St
Boston MA 02110
USA
www.fsf.org  www.gnu.org
Skype: No way! See stallman.org/skype.html.


Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#19752; Package emacs. (Fri, 25 Dec 2015 22:44:02 GMT) Full text and rfc822 format available.

Message #14 received at 19752 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Richard Stallman <rms <at> gnu.org>
Cc: 19752 <at> debbugs.gnu.org
Subject: Re: bug#19752: 25.0.50; fonts in HTML
Date: Fri, 25 Dec 2015 23:43:37 +0100
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).

This seems to display fine for me under X.   Are you still having
problems with that HTML file?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#19752; Package emacs. (Sat, 26 Dec 2015 06:15:02 GMT) Full text and rfc822 format available.

Message #17 received at 19752 <at> debbugs.gnu.org (full text, mbox):

From: Richard Stallman <rms <at> gnu.org>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 19752 <at> debbugs.gnu.org
Subject: Re: bug#19752: 25.0.50; fonts in HTML
Date: Sat, 26 Dec 2015 01:14:41 -0500
[[[ To any NSA and FBI agents reading my email: please consider    ]]]
[[[ whether defending the US Constitution against all enemies,     ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]

  > This seems to display fine for me under X.   Are you still having
  > problems with that HTML file?

I don't know what HTML file it was, any more.

-- 
Dr Richard Stallman
President, Free Software Foundation (gnu.org, fsf.org)
Internet Hall-of-Famer (internethalloffame.org)
Skype: No way! See stallman.org/skype.html.





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#19752; Package emacs. (Sat, 26 Dec 2015 13:48:02 GMT) Full text and rfc822 format available.

Message #20 received at 19752 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Richard Stallman <rms <at> gnu.org>
Cc: 19752 <at> debbugs.gnu.org
Subject: Re: bug#19752: 25.0.50; fonts in HTML
Date: Sat, 26 Dec 2015 14:46:39 +0100
[Message part 1 (text/plain, inline)]
Richard Stallman <rms <at> gnu.org> writes:

>   > This seems to display fine for me under X.   Are you still having
>   > problems with that HTML file?
>
> I don't know what HTML file it was, any more.

It's this file:

[d.html (text/html, attachment)]
[Message part 3 (text/plain, inline)]

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#19752; Package emacs. (Sun, 27 Dec 2015 02:54:02 GMT) Full text and rfc822 format available.

Message #23 received at 19752 <at> debbugs.gnu.org (full text, mbox):

From: Richard Stallman <rms <at> gnu.org>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 19752 <at> debbugs.gnu.org
Subject: Re: bug#19752: 25.0.50; fonts in HTML
Date: Sat, 26 Dec 2015 21:52:54 -0500
[[[ To any NSA and FBI agents reading my email: please consider    ]]]
[[[ whether defending the US Constitution against all enemies,     ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]

  > >   > This seems to display fine for me under X.   Are you still having
  > >   > problems with that HTML file?
  > >
  > > I don't know what HTML file it was, any more.

  > It's this file:

Yes, it still fails -- on the tty.  That means, the Linux console.

What happens in X is a different case, not relevant to the problem.

-- 
Dr Richard Stallman
President, Free Software Foundation (gnu.org, fsf.org)
Internet Hall-of-Famer (internethalloffame.org)
Skype: No way! See stallman.org/skype.html.





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#19752; Package emacs. (Sun, 29 Sep 2019 08:57:01 GMT) Full text and rfc822 format available.

Message #26 received at 19752 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Richard Stallman <rms <at> gnu.org>
Cc: 19752 <at> debbugs.gnu.org
Subject: Re: bug#19752: 25.0.50; fonts in HTML
Date: Sun, 29 Sep 2019 10:56:12 +0200
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




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#19752; Package emacs. (Fri, 01 Nov 2019 23:41:02 GMT) Full text and rfc822 format available.

Message #29 received at 19752 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Kangas <stefan <at> marxist.se>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: Richard Stallman <rms <at> gnu.org>, 19752 <at> debbugs.gnu.org
Subject: Re: bug#19752: 25.0.50; fonts in HTML
Date: Sat, 02 Nov 2019 00:40:12 +0100
Lars Ingebrigtsen <larsi <at> gnus.org> writes:

> 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?

FWIW, I tried this on the Linux console and got 8.  I guess ideally
Richard would try if evaluating the following and see if it solves the
problem for him:

    (setq shr-use-colors nil)

> 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

Best regards,
Stefan Kangas




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#19752; Package emacs. (Sat, 02 Nov 2019 07:46:01 GMT) Full text and rfc822 format available.

Message #32 received at 19752 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Stefan Kangas <stefan <at> marxist.se>
Cc: larsi <at> gnus.org, rms <at> gnu.org, 19752 <at> debbugs.gnu.org
Subject: Re: bug#19752: 25.0.50; fonts in HTML
Date: Sat, 02 Nov 2019 09:45:08 +0200
> From: Stefan Kangas <stefan <at> marxist.se>
> Date: Sat, 02 Nov 2019 00:40:12 +0100
> Cc: Richard Stallman <rms <at> gnu.org>, 19752 <at> debbugs.gnu.org
> 
> > What does (display-color-cells) return for you?
> 
> FWIW, I tried this on the Linux console and got 8.  I guess ideally
> Richard would try if evaluating the following and see if it solves the
> problem for him:
> 
>     (setq shr-use-colors nil)

This is an option, so "M-x set-variable RET works for it.  No need to
use setq.

More importantly, I think indeed this is on balance the best solution
for these cases.  Emacs automatically maps any color to the closest
available one, but HTML email messages can use color specifications
that will cause both foreground and background convert to the same
colors, which will make the text illegible.

Or maybe shr.el can be taught to use the distant-foreground feature to
handle such cases?

> > -(defcustom shr-use-colors t
> > +(defcustom shr-use-colors (> (display-color-cells) 256)

This is too drastic, IMO.  Most HTML formatted emails use very few
colors and look OK on display even with 8 colors.




Reply sent to Stefan Kangas <stefan <at> marxist.se>:
You have taken responsibility. (Wed, 12 Aug 2020 16:33:03 GMT) Full text and rfc822 format available.

Notification sent to rms <at> gnu.org:
bug acknowledged by developer. (Wed, 12 Aug 2020 16:33:03 GMT) Full text and rfc822 format available.

Message #37 received at 19752-done <at> debbugs.gnu.org (full text, mbox):

From: Stefan Kangas <stefan <at> marxist.se>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 19752-done <at> debbugs.gnu.org, larsi <at> gnus.org, rms <at> gnu.org
Subject: Re: bug#19752: 25.0.50; fonts in HTML
Date: Wed, 12 Aug 2020 09:32:15 -0700
Eli Zaretskii <eliz <at> gnu.org> writes:

>> From: Stefan Kangas <stefan <at> marxist.se>
>> Date: Sat, 02 Nov 2019 00:40:12 +0100
>> Cc: Richard Stallman <rms <at> gnu.org>, 19752 <at> debbugs.gnu.org
>>
>> > What does (display-color-cells) return for you?
>>
>> FWIW, I tried this on the Linux console and got 8.  I guess ideally
>> Richard would try if evaluating the following and see if it solves the
>> problem for him:
>>
>>     (setq shr-use-colors nil)
>
> This is an option, so "M-x set-variable RET works for it.  No need to
> use setq.
>
> More importantly, I think indeed this is on balance the best solution
> for these cases.  Emacs automatically maps any color to the closest
> available one, but HTML email messages can use color specifications
> that will cause both foreground and background convert to the same
> colors, which will make the text illegible.
>
> Or maybe shr.el can be taught to use the distant-foreground feature to
> handle such cases?
>
>> > -(defcustom shr-use-colors t
>> > +(defcustom shr-use-colors (> (display-color-cells) 256)
>
> This is too drastic, IMO.  Most HTML formatted emails use very few
> colors and look OK on display even with 8 colors.

No further updates within 40 weeks here.  The accepted solution is to
use:

    (setq shr-use-colors nil)

I'm therefore closing this bug report.  If this conclusion is incorrect,
please reply to this email (use "Reply to all" in your email client) and
we can reopen the bug report.

Best regards,
Stefan Kangas




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 10 Sep 2020 11:24:10 GMT) Full text and rfc822 format available.

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.