forked from VimPlug/emmet-vim
Jade: remove extra "/" after empty elements expansion
For instance, `img` should be expanded to `img(src="", alt="")` rather than `img(src="", alt="")/`
This commit is contained in:
@@ -72,9 +72,6 @@ function! emmet#lang#jade#toString(settings, current, type, inline, filters, ite
|
|||||||
let str .= '(' . tmp . ')'
|
let str .= '(' . tmp . ')'
|
||||||
end
|
end
|
||||||
endif
|
endif
|
||||||
if stridx(','.settings.html.empty_elements.',', ','.current_name.',') != -1 && len(current.value) == 0
|
|
||||||
let str .= '/'
|
|
||||||
endif
|
|
||||||
|
|
||||||
let inner = ''
|
let inner = ''
|
||||||
if len(current.value) > 0
|
if len(current.value) > 0
|
||||||
|
|||||||
Reference in New Issue
Block a user