Commit 5ea1a8d1 authored by Katsumi Yamaoka's avatar Katsumi Yamaoka
Browse files

gnus-art.el (gnus-article-browse-html-parts): Use <div align="left"> instead...

gnus-art.el (gnus-article-browse-html-parts): Use <div align="left"> instead of <pre> to align message header
parent 2dd61a9b
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) "&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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment