forked from VimPlug/emmet-vim
Fix lost attributes. Close #121
This commit is contained in:
@@ -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 zencoding#util#unique(current.attrs_order)
|
||||
for attr in zencoding#util#unique(current.attrs_order + keys(current.attr))
|
||||
if !has_key(current.attr, attr)
|
||||
continue
|
||||
endif
|
||||
|
||||
@@ -322,10 +322,7 @@ function! zencoding#lang#html#toString(settings, current, type, inline, filters,
|
||||
endif
|
||||
if len(current_name) > 0
|
||||
let str .= '<' . current_name
|
||||
for attr in zencoding#util#unique(current.attrs_order)
|
||||
if !has_key(current.attr, attr)
|
||||
continue
|
||||
endif
|
||||
for attr in zencoding#util#unique(current.attrs_order + keys(current.attr))
|
||||
let val = current.attr[attr]
|
||||
if dollar_expr
|
||||
while val =~ '\$\([^#{]\|$\)'
|
||||
|
||||
@@ -25,7 +25,7 @@ function! zencoding#lang#slim#toString(settings, current, type, inline, filters,
|
||||
endif
|
||||
if len(current.name) > 0
|
||||
let str .= current_name
|
||||
for attr in zencoding#util#unique(current.attrs_order)
|
||||
for attr in zencoding#util#unique(current.attrs_order + keys(current.attr))
|
||||
if !has_key(current.attr, attr)
|
||||
continue
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user