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 565096b..052c032 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 9dfe119..43c8ca7 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)