HTML button insertion cleanup
authorLars Ingebrigtsen <larsi@gnus.org>
Wed, 1 Feb 2012 00:58:20 +0000 (01:58 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Wed, 1 Feb 2012 00:58:20 +0000 (01:58 +0100)
* mm-decode.el (mm-shr): Make sure that the HTML ends with a newline.
Otherwise inserting text into the Gnus buffer can look odd.

lisp/ChangeLog
lisp/mm-decode.el

index 7c2ae5d..da89607 100644 (file)
@@ -1,5 +1,8 @@
 2012-02-01  Lars Ingebrigtsen  <larsi@gnus.org>
 
+       * mm-decode.el (mm-shr): Make sure that the HTML ends with a newline.
+       Otherwise inserting text into the Gnus buffer can look odd.
+
        * gnus-art.el (gnus-mime-inline-part): Slight clean-up.
 
        * mm-archive.el (mm-archive-decoders): Add support for tar.
index e6407cf..3b3695b 100644 (file)
@@ -1765,6 +1765,8 @@ If RECURSIVE, search recursively."
                                  mm-extra-numeric-entities)))
             (replace-match (char-to-string char))))
         (libxml-parse-html-region (point-min) (point-max))))
+      (unless (bobp)
+       (insert "\n"))
       (mm-handle-set-undisplayer
        handle
        `(lambda ()