diff options
Diffstat (limited to 'src/html-abbrev.el')
-rw-r--r-- | src/html-abbrev.el | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/html-abbrev.el b/src/html-abbrev.el index 2c4a0b5..ccc233e 100644 --- a/src/html-abbrev.el +++ b/src/html-abbrev.el @@ -685,9 +685,10 @@ (sib2 (emmet-transform-ast (caddr ast) tag-maker))) (concat sib1 "\n" sib2)))))) +;; Indents text rigidly by inserting spaces +;; Only matters if emmet-indent-after-insert is set to nil (defun emmet-indent (text) "Indent the text" (if text - (replace-regexp-in-string "\n" "\n " (concat "\n" text)) + (replace-regexp-in-string "\n" (concat "\n" (make-string emmet-indentation ?\ )) (concat "\n" text)) nil)) - |