]> git.eshelyaron.com Git - emacs.git/commitdiff
gnus-art.el (gnus-article-browse-html-parts): Use <div align="left"> instead of ...
authorKatsumi Yamaoka <yamaoka@jpl.org>
Wed, 12 Dec 2012 22:22:31 +0000 (22:22 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Wed, 12 Dec 2012 22:22:31 +0000 (22:22 +0000)
lisp/gnus/ChangeLog
lisp/gnus/gnus-art.el

index 565096b628936c59961e8bf585757e1d0fa1426e..052c0324734c54d228146ca4fda6daa016ccaf1c 100644 (file)
@@ -1,3 +1,8 @@
+2012-12-12  Katsumi Yamaoka  <yamaoka@jpl.org>
+
+       * gnus-art.el (gnus-article-browse-html-parts): Use <div align="left">
+       instead of <pre> to align message header.
+
 2012-12-12  Sam Steingold  <sds@gnu.org>
 
        * gnus.el (gnus-other-frame-resume-function): Add user option.
index 9dfe119f831d02cc23a62c60017c3b3cb0da6afa..43c8ca786019e7e317f7ff1182f27ebfc1a3060b 100644 (file)
@@ -2884,14 +2884,16 @@ message header will be added to the bodies of the \"text/html\" parts."
                   (insert header "\n")
                   (setq title (message-fetch-field "subject"))
                   (goto-char (point-min))
-                  (while (re-search-forward "\\(<\\)\\|\\(>\\)\\|&" nil t)
+                  (while (re-search-forward "\\(<\\)\\|\\(>\\)\\|\\(&\\)\\|\n"
+                                            nil t)
                     (replace-match (cond ((match-beginning 1) "&lt;")
                                          ((match-beginning 2) "&gt;")
-                                         (t "&amp;"))))
+                                         ((match-beginning 3) "&amp;")
+                                         (t "<br>\n"))))
                   (goto-char (point-min))
-                  (insert "<pre>\n")
+                  (insert "<div align=\"left\">\n")
                   (goto-char (point-max))
-                  (insert "</pre>\n<hr>\n")
+                  (insert "</div>\n<hr>\n")
                   ;; We have to examine charset one by one since
                   ;; charset specified in parts might be different.
                   (if (eq charset 'gnus-decoded)