<!DOCTYPE> should be contains last \n

This commit is contained in:
mattn
2014-03-11 21:07:07 +09:00
parent 9480824c0f
commit cd23a38f2b
3 changed files with 10 additions and 9 deletions

View File

@@ -120,7 +120,7 @@ function! emmet#lang#html#parseIntoTree(abbr, type)
if use_pipe_for_cursor
let snippet = substitute(snippet, '|', '${cursor}', 'g')
endif
let lines = split(snippet, "\n")
let lines = split(snippet, "\n", 1)
call map(lines, 'substitute(v:val, "\\( \\|\\t\\)", escape(indent, "\\\\"), "g")')
let current.snippet = join(lines, "\n")
let current.name = ''