summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorMauro Aranda <maurooaranda@gmail.com>2021-01-30 07:47:34 +0100
committerLars Ingebrigtsen <larsi@gnus.org>2021-01-30 07:47:34 +0100
commit5644ac41c42fde4a4434131e45110aa1e909e0b2 (patch)
tree314bc05730c6d25f49480c2a92baea20f8c61c11 /lisp
parent90ce2b80342299ef4c6c2f6b08cca55e20ffa06b (diff)
downloademacs-5644ac41c42fde4a4434131e45110aa1e909e0b2.tar.gz
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).
Diffstat (limited to 'lisp')
-rw-r--r--lisp/textmodes/sgml-mode.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/textmodes/sgml-mode.el b/lisp/textmodes/sgml-mode.el
index 8465e82b02a..c50c544cb54 100644
--- a/lisp/textmodes/sgml-mode.el
+++ b/lisp/textmodes/sgml-mode.el
@@ -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"