Unique attribute names. close #119

This commit is contained in:
mattn
2013-04-19 13:22:06 +09:00
parent 6d07bd9752
commit 1f041e7dd3
4 changed files with 15 additions and 3 deletions

View File

@@ -26,7 +26,7 @@ function! zencoding#lang#haml#toString(settings, current, type, inline, filters,
if len(current.name) > 0
let str .= '%' . current_name
let tmp = ''
for attr in current.attrs_order
for attr in zencoding#util#unique(current.attrs_order)
if !has_key(current.attr, attr)
continue
endif