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:
Josué Cau
2015-07-15 11:06:53 +02:00
parent c523cfd5e2
commit 7e3af15e4e

View File

@@ -72,9 +72,6 @@ function! emmet#lang#jade#toString(settings, current, type, inline, filters, ite
let str .= '(' . tmp . ')'
end
endif
if stridx(','.settings.html.empty_elements.',', ','.current_name.',') != -1 && len(current.value) == 0
let str .= '/'
endif
let inner = ''
if len(current.value) > 0