diff options
| author | Katsumi Yamaoka | 2012-12-12 22:22:31 +0000 |
|---|---|---|
| committer | Katsumi Yamaoka | 2012-12-12 22:22:31 +0000 |
| commit | 5ea1a8d1eec3a36833c8ea360289f2fa10ef6e4b (patch) | |
| tree | 3ff42575b783ccac2f45eea106863c4e00c514d5 | |
| parent | 2dd61a9b332356fa24d96527a71ef4fe29fb9e5c (diff) | |
| download | emacs-5ea1a8d1eec3a36833c8ea360289f2fa10ef6e4b.tar.gz emacs-5ea1a8d1eec3a36833c8ea360289f2fa10ef6e4b.zip | |
gnus-art.el (gnus-article-browse-html-parts): Use <div align="left"> instead of <pre> to align message header
| -rw-r--r-- | lisp/gnus/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/gnus/gnus-art.el | 10 |
2 files changed, 11 insertions, 4 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 565096b6289..052c0324734 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2012-12-12 Katsumi Yamaoka <yamaoka@jpl.org> | ||
| 2 | |||
| 3 | * gnus-art.el (gnus-article-browse-html-parts): Use <div align="left"> | ||
| 4 | instead of <pre> to align message header. | ||
| 5 | |||
| 1 | 2012-12-12 Sam Steingold <sds@gnu.org> | 6 | 2012-12-12 Sam Steingold <sds@gnu.org> |
| 2 | 7 | ||
| 3 | * gnus.el (gnus-other-frame-resume-function): Add user option. | 8 | * gnus.el (gnus-other-frame-resume-function): Add user option. |
diff --git a/lisp/gnus/gnus-art.el b/lisp/gnus/gnus-art.el index 9dfe119f831..43c8ca78601 100644 --- a/lisp/gnus/gnus-art.el +++ b/lisp/gnus/gnus-art.el | |||
| @@ -2884,14 +2884,16 @@ message header will be added to the bodies of the \"text/html\" parts." | |||
| 2884 | (insert header "\n") | 2884 | (insert header "\n") |
| 2885 | (setq title (message-fetch-field "subject")) | 2885 | (setq title (message-fetch-field "subject")) |
| 2886 | (goto-char (point-min)) | 2886 | (goto-char (point-min)) |
| 2887 | (while (re-search-forward "\\(<\\)\\|\\(>\\)\\|&" nil t) | 2887 | (while (re-search-forward "\\(<\\)\\|\\(>\\)\\|\\(&\\)\\|\n" |
| 2888 | nil t) | ||
| 2888 | (replace-match (cond ((match-beginning 1) "<") | 2889 | (replace-match (cond ((match-beginning 1) "<") |
| 2889 | ((match-beginning 2) ">") | 2890 | ((match-beginning 2) ">") |
| 2890 | (t "&")))) | 2891 | ((match-beginning 3) "&") |
| 2892 | (t "<br>\n")))) | ||
| 2891 | (goto-char (point-min)) | 2893 | (goto-char (point-min)) |
| 2892 | (insert "<pre>\n") | 2894 | (insert "<div align=\"left\">\n") |
| 2893 | (goto-char (point-max)) | 2895 | (goto-char (point-max)) |
| 2894 | (insert "</pre>\n<hr>\n") | 2896 | (insert "</div>\n<hr>\n") |
| 2895 | ;; We have to examine charset one by one since | 2897 | ;; We have to examine charset one by one since |
| 2896 | ;; charset specified in parts might be different. | 2898 | ;; charset specified in parts might be different. |
| 2897 | (if (eq charset 'gnus-decoded) | 2899 | (if (eq charset 'gnus-decoded) |