From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/73620 Path: news.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.gnus.general Subject: Re: [gnus git] branch master updated: =1= shr.el (shr-tag-div): Added. Date: Wed, 27 Oct 2010 09:15:27 +0900 Organization: Emacsen advocacy group Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1288138601 5313 80.91.229.12 (27 Oct 2010 00:16:41 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 27 Oct 2010 00:16:41 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M21989@lists.math.uh.edu Wed Oct 27 02:16:40 2010 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PAth0-0004f1-CU for ding-account@gmane.org; Wed, 27 Oct 2010 02:16:38 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1PAtgb-00080u-LJ; Tue, 26 Oct 2010 19:16:13 -0500 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1PAtgZ-00080Z-Fi for ding@lists.math.uh.edu; Tue, 26 Oct 2010 19:16:11 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1PAtgY-00045W-2k for ding@lists.math.uh.edu; Tue, 26 Oct 2010 19:16:10 -0500 Original-Received: from orlando.hostforweb.net ([216.246.45.90]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1PAtgW-0008Fd-00 for ; Wed, 27 Oct 2010 02:16:08 +0200 Original-Received: from localhost ([127.0.0.1]:43004) by orlando.hostforweb.net with esmtpa (Exim 4.69) (envelope-from ) id 1PAtfu-0002qE-7E for ding@gnus.org; Tue, 26 Oct 2010 19:15:30 -0500 X-Hashcash: 1:20:101027:ding@gnus.org::QV/o1EmIkwaU+9dU:00002ExC X-Face: #kKnN,xUnmKia.'[pp`;Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu;B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:Ib5gQmWVQBv92v7Q5sc/3cpQTyo= X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - orlando.hostforweb.net X-AntiAbuse: Original Domain - gnus.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - jpl.org X-Source: X-Source-Args: X-Source-Dir: X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:73620 Archived-At: Lars Magne Ingebrigtsen wrote: > Katsumi Yamaoka writes: >> +(defun shr-tag-div (cont) >> + (shr-ensure-newline) >> + (shr-indent) >> + (shr-generic cont) >> + (shr-ensure-newline)) > I'm not sure this is actually helpful for rendering. Very often the div > is just used as a container, and the css spells out that there should be > no "rendering" effect of the div. (Many people haven't heard of span. > :-)) So that's why I left the div rendering be null. But many business mails I receive assume that
...
represents a paragraph, , i.e., text within the tag begins with and end with newlines. For instance:
There are two items:
1 foo
2 bar
shr rendered this as: There are two items: 1 foo 2 bar But it should be: There are two items: 1 foo 2 bar If a mail contains text/plain and text/plain parts as multipart/alternative, now both are displayed similarly.