1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-04-27 16:51:06 -07:00

Fix HTML rendering by shr-insert-document in Rmail.

lisp/mail/rmailmm.el (rmail-mime-insert-html): Decode the HTML part
 using the specified transfer-encoding, if any, or 'undecided'.
 (rmail-mime-render-html-shr): Bind shr-width to nil, so lines are
 broken at the window margin.

Fixes: debbugs:4258
This commit is contained in:
Eli Zaretskii 2014-09-13 12:25:38 +03:00
parent cac270ffcd
commit 5f9d7c7c5c
2 changed files with 8 additions and 1 deletions

View file

@ -2,6 +2,8 @@
* mail/rmailmm.el (rmail-mime-insert-html): Decode the HTML part
using the specified transfer-encoding, if any, or 'undecided'.
(rmail-mime-render-html-shr): Bind shr-width to nil, so lines are
broken at the window margin.
2013-12-27 Ken Olum <kdo@cosmos.phy.tufts.edu>

View file

@ -694,7 +694,12 @@ HEADER is a header component of a MIME-entity object (see
;; Image retrieval happens asynchronously, but meanwhile
;; `rmail-swap-buffers' may have been run, leaving
;; `shr-image-fetched' trying to insert the image in the wrong buffer.
(shr-inhibit-images t))
(shr-inhibit-images t)
;; Bind shr-width to nil to force shr-insert-document break
;; the lines at the window margin. The default is
;; fill-column, whose default value is too small, and screws
;; up display of the quoted messages.
shr-width)
(shr-insert-document dom)))
(defun rmail-mime-render-html-lynx (source-buffer)