aboutsummaryrefslogtreecommitdiffstats
path: root/src/html-abbrev.el
diff options
context:
space:
mode:
Diffstat (limited to 'src/html-abbrev.el')
-rw-r--r--src/html-abbrev.el9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/html-abbrev.el b/src/html-abbrev.el
index ea70100..4427850 100644
--- a/src/html-abbrev.el
+++ b/src/html-abbrev.el
@@ -438,10 +438,15 @@
(classes (pop tag-info))
(props (pop tag-info))
(txt (pop tag-info))
- (settings (gethash name emmet-tag-settings-table)))
+ (settings (gethash name emmet-tag-settings-table))
+ (self-closing?
+ (and (not (or txt content))
+ (or (not has-body?)
+ (and settings (gethash "selfClosing" settings))))))
(funcall tag-maker name has-body? id classes props txt settings
(if content content
- (if emmet-leaf-function (funcall emmet-leaf-function))))))
+ (if (and emmet-leaf-function (not self-closing?))
+ (funcall emmet-leaf-function))))))
(defun emmet-hash-to-list (hash &optional proc)
(unless proc (setq proc #'cons))