Fix/improve html-indent-on-new-line
* Fixes erroring execute-keys statement by using '<lt>' rather then '<' * Reworks hook to not indent after self closing tags
This commit is contained in:
parent
551021d6e5
commit
1d731dbdd0
|
@ -51,8 +51,7 @@ define-command -hidden html-indent-on-new-line %{
|
||||||
# filter previous line
|
# filter previous line
|
||||||
try %{ execute-keys -draft k : html-filter-around-selections <ret> }
|
try %{ execute-keys -draft k : html-filter-around-selections <ret> }
|
||||||
# indent after lines ending with opening tag
|
# indent after lines ending with opening tag
|
||||||
try %{ execute-keys -draft k <a-x> <a-k> <[^/][^>]+>$ <ret> j <a-gt> }
|
try %{ execute-keys -draft k <a-x> <a-k> <lt>(?!area)(?!base)(?!br)(?!col)(?!command)(?!embed)(?!hr)(?!img)(?!input)(?!keygen)(?!link)(?!menuitem)(?!meta)(?!param)(?!source)(?!track)(?!wbr)(?!/)(?!>)[a-zA-Z0-9_-]+[^>]*?>$ <ret> j <a-gt> } }
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# Initialization
|
# Initialization
|
||||||
|
|
Loading…
Reference in New Issue
Block a user