rollback: use html specification.

This commit is contained in:
mattn
2010-03-15 12:40:35 +09:00
parent d9e7b4cf2a
commit 6c4a79e963

View File

@@ -1195,10 +1195,10 @@ function! s:zen_toString(...)
if len(comment) > 0 | let str .= "<!-- /" . comment . " -->\n" . comment_indent | endif if len(comment) > 0 | let str .= "<!-- /" . comment . " -->\n" . comment_indent | endif
else else
if inline == 0 if inline == 0
if !has_key(s:zen_settings[type], 'empty_elements') || (has_key(s:zen_settings[type], 'empty_elements') && stridx(','.s:zen_settings[type].empty_elements.',', ','.current.name.',') != -1) if stridx(','.s:zen_settings.html.empty_elements.',', ','.current.name.',') != -1
let str .= " />\n" let str .= " />\n"
else else
if has_key(s:zen_settings[type], 'inline_elements') && stridx(','.s:zen_settings[type].inline_elements.',', ','.current.name.',') == -1 && len(current.child) if stridx(','.s:zen_settings.html.inline_elements.',', ','.current.name.',') == -1 && len(current.child)
let str .= ">\n" . inner . '${cursor}</' . current.name . ">\n" let str .= ">\n" . inner . '${cursor}</' . current.name . ">\n"
else else
let str .= ">" . inner . '${cursor}</' . current.name . ">\n" let str .= ">" . inner . '${cursor}</' . current.name . ">\n"
@@ -1206,7 +1206,7 @@ function! s:zen_toString(...)
endif endif
if len(comment) > 0 | let str .= "<!-- /" . comment . " -->\n" . comment_indent | endif if len(comment) > 0 | let str .= "<!-- /" . comment . " -->\n" . comment_indent | endif
else else
if has_key(s:zen_settings[type], 'empty_elements') || stridx(','.s:zen_settings[type].empty_elements.',', ','.current.name.',') != -1 if stridx(','.s:zen_settings.html.empty_elements.',', ','.current.name.',') != -1
let str .= " />" let str .= " />"
else else
let str .= ">" . inner . '${cursor}</' . current.name . ">" let str .= ">" . inner . '${cursor}</' . current.name . ">"