gnus-art.el (gnus-article-browse-html-parts): Use <div align="left"> instead of <pre> to align message header
This commit is contained in:
parent
2dd61a9b33
commit
5ea1a8d1ee
2 changed files with 11 additions and 4 deletions
|
@ -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.
|
||||
|
|
|
@ -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) "<")
|
||||
((match-beginning 2) ">")
|
||||
(t "&"))))
|
||||
((match-beginning 3) "&")
|
||||
(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)
|
||||
|
|
Loading…
Add table
Reference in a new issue