Add source to sgml-empty-tags

* lisp/textmodes/sgml-mode.el (html-mode): Add "source" as an empty
tag to fix indentation when this element is present (bug#46181).
This commit is contained in:
Mauro Aranda 2021-01-30 07:47:34 +01:00 committed by Lars Ingebrigtsen
parent 90ce2b8034
commit 5644ac41c4

View file

@ -2402,9 +2402,9 @@ To work around that, do:
(setq-local sgml-empty-tags
;; From HTML-4.01's loose.dtd, parsed with
;; `sgml-parse-dtd', plus manual addition of "wbr".
;; `sgml-parse-dtd', plus manual additions of "source" and "wbr".
'("area" "base" "basefont" "br" "col" "frame" "hr" "img" "input"
"isindex" "link" "meta" "param" "wbr"))
"isindex" "link" "meta" "source" "param" "wbr"))
(setq-local sgml-unclosed-tags
;; From HTML-4.01's loose.dtd, parsed with `sgml-parse-dtd'.
'("body" "colgroup" "dd" "dt" "head" "html" "li" "option"