From 62c6622153f206cddee63857b8e2b49aeb925ce2 Mon Sep 17 00:00:00 2001 From: mattn Date: Wed, 8 May 2013 10:17:12 +0900 Subject: [PATCH] Fix attributes missing --- autoload/zencoding/lang/html.vim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/autoload/zencoding/lang/html.vim b/autoload/zencoding/lang/html.vim index fd1d184..7e8880d 100644 --- a/autoload/zencoding/lang/html.vim +++ b/autoload/zencoding/lang/html.vim @@ -323,6 +323,9 @@ function! zencoding#lang#html#toString(settings, current, type, inline, filters, if len(current_name) > 0 let str .= '<' . current_name for attr in zencoding#util#unique(current.attrs_order + keys(current.attr)) + if !has_key(current.attr, attr) + continue + endif let val = current.attr[attr] if dollar_expr while val =~ '\$\([^#{]\|$\)'