diff options
author | flyingleafe <flyingleafe@gmail.com> | 2014-08-05 14:03:16 +0600 |
---|---|---|
committer | flyingleafe <flyingleafe@gmail.com> | 2014-08-05 14:03:16 +0600 |
commit | 928648a15433c866931919670558d656b9f32563 (patch) | |
tree | fddb7e1d251166518ff176435457f3e1389471ab /emmet-mode.el | |
parent | fdfa4d71fe42f6410e0617b46ec5de2935d14a5e (diff) | |
download | emmet-mode-928648a15433c866931919670558d656b9f32563.tar.lz emmet-mode-928648a15433c866931919670558d656b9f32563.tar.xz emmet-mode-928648a15433c866931919670558d656b9f32563.zip |
Fixing improper behavior of block tags
Diffstat (limited to 'emmet-mode.el')
-rw-r--r-- | emmet-mode.el | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/emmet-mode.el b/emmet-mode.el index 1452731..1eb248b 100644 --- a/emmet-mode.el +++ b/emmet-mode.el @@ -1977,7 +1977,7 @@ tbl) tbl) (puthash "selfClosing" nil tbl) tbl) tbl) (puthash "div" (let ((tbl (make-hash-table :test 'equal))) -(puthash "block" nil tbl) +(puthash "block" t tbl) (puthash "selfClosing" nil tbl) tbl) tbl) (puthash "dl" (let ((tbl (make-hash-table :test 'equal))) @@ -2206,7 +2206,7 @@ tbl) tbl) (puthash "selfClosing" nil tbl) tbl) tbl) (puthash "p" (let ((tbl (make-hash-table :test 'equal))) -(puthash "block" nil tbl) +(puthash "block" t tbl) (puthash "selfClosing" nil tbl) tbl) tbl) (puthash "param" (let ((tbl (make-hash-table :test 'equal))) @@ -2936,16 +2936,17 @@ tbl)) (self-closing? (and (not (or tag-txt content)) (or (not tag-has-body?) (and settings (gethash "selfClosing" settings))))) - (lf (if (or content-multiline? block-tag?) "\n"))) + (block-indentation? (or content-multiline? (and block-tag? content))) + (lf (if block-indentation? "\n"))) (concat "<" tag-name id classes props (if self-closing? "/>" (concat ">" (if tag-txt - (if (or content-multiline? block-tag?) + (if block-indentation? (emmet-indent tag-txt) tag-txt)) (if content - (if (or content-multiline? block-tag?) + (if block-indentation? (emmet-indent content) content)) lf |