forked from VimPlug/emmet-vim
fix indent.
This commit is contained in:
@@ -397,7 +397,7 @@ function! zencoding#lang#html#imageSize()
|
|||||||
endif
|
endif
|
||||||
let current.attr.width = width
|
let current.attr.width = width
|
||||||
let current.attr.height = height
|
let current.attr.height = height
|
||||||
let html = zencoding#toString(current, 'html', 1)
|
let html = substitute(zencoding#toString(current, 'html', 1), '\n', '', '')
|
||||||
call zencoding#util#setContent(img_region, html)
|
call zencoding#util#setContent(img_region, html)
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
@@ -527,7 +527,6 @@ function! zencoding#lang#html#balanceTag(flag) range
|
|||||||
let pos1 = searchpos(mx, 'bW')
|
let pos1 = searchpos(mx, 'bW')
|
||||||
let content = matchstr(getline(pos1[0])[pos1[1]-1:], mx)
|
let content = matchstr(getline(pos1[0])[pos1[1]-1:], mx)
|
||||||
let tag_name = matchstr(content, '^<\zs[a-zA-Z0-9:_\-]*\ze')
|
let tag_name = matchstr(content, '^<\zs[a-zA-Z0-9:_\-]*\ze')
|
||||||
echo tag_name
|
|
||||||
if stridx(','.settings.html.empty_elements.',', ','.tag_name.',') != -1
|
if stridx(','.settings.html.empty_elements.',', ','.tag_name.',') != -1
|
||||||
let pos2 = searchpos('>', 'nW')
|
let pos2 = searchpos('>', 'nW')
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user