From 2ff5526a0ca16d25bfec0c01e744d313268d3fcc Mon Sep 17 00:00:00 2001 From: mattn Date: Sun, 3 Jun 2012 00:14:42 +0900 Subject: [PATCH] check text node or not. --- autoload/zencoding/lang/html.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/zencoding/lang/html.vim b/autoload/zencoding/lang/html.vim index 9ddde00..81acc7b 100644 --- a/autoload/zencoding/lang/html.vim +++ b/autoload/zencoding/lang/html.vim @@ -342,7 +342,7 @@ function! zencoding#lang#html#toString(settings, current, type, inline, filters, let inner .= html endfor if len(current.child) == 1 - if stridx(','.settings.html.inline_elements.',', ','.current.child[0].name.',') == -1 + if len(current.child[0].name) > 0 && stridx(','.settings.html.inline_elements.',', ','.current.child[0].name.',') == -1 let inner = substitute(inner, "\n", "\n" . indent, 'g') let inner = substitute(inner, indent . "$", "", 'g') let str .= ">\n" . indent . inner . ""