forked from VimPlug/emmet-vim
fix indent: when wrap inner text with block element, it don't append indent. close #90
This commit is contained in:
@@ -357,6 +357,9 @@ function! zencoding#lang#html#toString(settings, current, type, inline, filters,
|
|||||||
if nc > 1 || (len(child.name) > 0 && stridx(','.settings.html.inline_elements.',', ','.child.name.',') == -1)
|
if nc > 1 || (len(child.name) > 0 && stridx(','.settings.html.inline_elements.',', ','.child.name.',') == -1)
|
||||||
let str .= "\n" . indent
|
let str .= "\n" . indent
|
||||||
let dr = 1
|
let dr = 1
|
||||||
|
elseif nc == 1 && len(child.name) == 0
|
||||||
|
let str .= "\n" . indent
|
||||||
|
let dr = 1
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
let inner = zencoding#toString(child, type, 0, filters, itemno)
|
let inner = zencoding#toString(child, type, 0, filters, itemno)
|
||||||
|
|||||||
Reference in New Issue
Block a user