fix indent for ${child}.

This commit is contained in:
mattn
2012-06-13 18:21:30 +09:00
parent 16e3a95d7f
commit 05688356b3
3 changed files with 5 additions and 5 deletions

View File

@@ -176,9 +176,9 @@ function! zencoding#toString(...)
for n in current.child
let inner .= zencoding#toString(n, type, inline, filters, group_itemno)
endfor
"let inner = substitute(inner, "\n", "\n" . indent, 'g')
endif
let inner = substitute(inner, "\n", "\n" . indent, 'g')
let spaces = matchstr(str, '\s*\ze\${child}')
let inner = substitute(inner, "\n", "\n" . spaces, 'g')
let str = substitute(str, '\${child}', inner, '')
endif
let itemno = itemno + 1