From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/73398 Path: news.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.w3m,gmane.emacs.gnus.general Subject: [emacs-w3m:11394] a mail containing two or more html parts Date: Thu, 21 Oct 2010 16:54:30 +0900 Organization: Emacsen advocacy group Message-ID: Reply-To: emacs-w3m@namazu.org NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1287647699 11190 80.91.229.12 (21 Oct 2010 07:54:59 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 21 Oct 2010 07:54:59 +0000 (UTC) Cc: ding@gnus.org To: emacs-w3m@namazu.org Original-X-From: emacs-w3m-admin@namazu.org Thu Oct 21 09:54:58 2010 Return-path: Envelope-to: emacs-w3m@deer.gmane.org Original-Received: from quimby.gnus.org ([80.91.231.51]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1P8pzD-0001ua-DT for emacs-w3m@deer.gmane.org; Thu, 21 Oct 2010 09:54:55 +0200 Original-Received: from vaj.namazu.org ([202.221.179.42]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1P8pzC-0001pj-00 for ; Thu, 21 Oct 2010 09:54:54 +0200 Original-Received: from vaj.namazu.org (localhost [127.0.0.1]) by vaj.namazu.org (Postfix) with ESMTP id 44F1299E9C; Thu, 21 Oct 2010 16:54:51 +0900 (JST) Original-Received: from orlando.hostforweb.net (orlando.hostforweb.net [216.246.45.90]) by vaj.namazu.org (Postfix) with ESMTP id 8766A99E20 for ; Thu, 21 Oct 2010 16:54:49 +0900 (JST) Original-Received: from localhost ([127.0.0.1]:45160) by orlando.hostforweb.net with esmtpa (Exim 4.69) (envelope-from ) id 1P8pyv-0002fA-34; Thu, 21 Oct 2010 02:54:37 -0500 X-ML-Name: emacs-w3m X-Mail-Count: 11394 X-MLServer: fml [fml 4.0.3 release (20011202/4.0.3)]; post only (anyone can post) X-ML-Info: If you have a question, send e-mail with the body "help" (without quotes) to the address emacs-w3m-ctl@namazu.org; help= User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) X-Hashcash: 1:20:101021:emacs-w3m@namazu.org::oPyC4p6kstflPVTN:000000000000000000000000000000000000000001IAc X-Hashcash: 1:20:101021:ding@gnus.org::EyN/A6CntAl8f/gz:00004fEW 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&( Cancel-Lock: sha1:5Mv1bMqEq4gN5GuSGP9NJks/jYA= 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 - namazu.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-Flag: No X-Spam-Probability: 0.000000 Precedence: bulk Original-Lines: 23 List-Id: emacs-w3m.namazu.org List-Software: fml [fml 4.0.3 release (20011202/4.0.3)] List-Post: List-Owner: List-Help: List-Unsubscribe: Xref: news.gmane.org gmane.emacs.w3m:8754 gmane.emacs.gnus.general:73398 Archived-At: Hi nnshimbun users, Some shimbun modules generate an article containing two or more html parts if the original web contents consist of many pages, though such ones may not be general. To delimit pages, every succeeding html part has " " (i.e. `^L') in the beginning of an html body. But you may see those `^L's are missing nowadays when displaying, if you use the most recent Gnus and Emacs. It is because the default value of `mm-text-html-renderer' has changed into `shr', and `libxml-parse-html-region' that `mm-shr' uses simply ignores `^L's. This advice will help: (defadvice gnus-mime-display-mixed (around add-page-delimiter (handles) activate) "Add page delimiters to the beginning of succeeding html parts." (if (eq mm-text-html-renderer 'shr) (progn (gnus-mime-display-part (pop handles)) (while handles (if (equal (mm-handle-media-type (car handles)) "text/html") (insert "\C-l\n")) (gnus-mime-display-part (pop handles)))) ad-do-it))