]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix HTML rendering by shr-insert-document in Rmail.
authorEli Zaretskii <eliz@gnu.org>
Sat, 13 Sep 2014 09:25:38 +0000 (12:25 +0300)
committerEli Zaretskii <eliz@gnu.org>
Sat, 13 Sep 2014 09:25:38 +0000 (12:25 +0300)
 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
lisp/ChangeLog
lisp/mail/rmailmm.el

index e79f8563b49750b9ea84611b789a141e9e0ad1e3..a05b7b59a278104dbd6f3112f0cf19bd35884128 100644 (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>
 
index becfb2f8cab668d6377ace05cbf9040a258ed8a2..b5b594f59f2a396fbcd34a5c297d1508218a8a11 100644 (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)