1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-04-21 05:21:37 -07:00

(sgml-html-meta-auto-coding-function):

Remove > after <html to allow HTML attributes.
This commit is contained in:
Juri Linkov 2004-11-11 21:39:41 +00:00
parent 6d1289c338
commit 81668eb260

View file

@ -2126,7 +2126,7 @@ This function is intended to be added to `auto-coding-functions'."
(save-excursion
(forward-line 10)
(point))))
(when (and (search-forward "<html>" size t)
(when (and (search-forward "<html" size t)
(re-search-forward "<meta\\s-+http-equiv=\"content-type\"\\s-+content=\"text/\\sw+;\\s-*charset=\\(.+?\\)\"" size t))
(let* ((match (match-string 1))
(sym (intern (downcase match))))