Gnus development mailing list
 help / color / mirror / Atom feed
From: Katsumi Yamaoka <yamaoka@jpl.org>
To: emacs-w3m@namazu.org
Cc: ding@gnus.org
Subject: [emacs-w3m:11394] a mail containing two or more html parts
Date: Thu, 21 Oct 2010 16:54:30 +0900	[thread overview]
Message-ID: <b4mlj5sasll.fsf@jpl.org> (raw)

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 "&#012;" (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))



                 reply	other threads:[~2010-10-21  7:54 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=b4mlj5sasll.fsf@jpl.org \
    --to=yamaoka@jpl.org \
    --cc=ding@gnus.org \
    --cc=emacs-w3m@namazu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).