escape indent character if it's like '\t' (not "\t"). however, it won't beuseful for me.

This commit is contained in:
mattn
2012-07-26 08:58:08 +09:00
parent 2393c3772a
commit 7ad7c1032e
6 changed files with 12 additions and 11 deletions

View File

@@ -52,8 +52,8 @@ function! zencoding#lang#scss#toString(settings, current, type, inline, filters,
for child in current.child
let inner .= zencoding#toString(child, type, inline, filters, itemno)
endfor
let inner = substitute(inner, "\n", "\n" . indent, 'g')
let inner = substitute(inner, "\n" . indent . "$", "", 'g')
let inner = substitute(inner, "\n", "\n" . escape(indent, '\'), 'g')
let inner = substitute(inner, "\n" . escape(indent, '\') . "$", "", 'g')
let str .= indent . inner . "\n}\n"
else
return zencoding#lang#css#toString(settings, current, type, inline, filters, itemno, indent)