From b9c63d08e1e983067c8de9c11d86d44aa7c59e56 Mon Sep 17 00:00:00 2001 From: mattn Date: Tue, 9 Mar 2010 01:57:59 +0900 Subject: [PATCH] enable haml filter. --- zencoding.vim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/zencoding.vim b/zencoding.vim index b478674..90de5b9 100644 --- a/zencoding.vim +++ b/zencoding.vim @@ -1025,6 +1025,9 @@ function! s:zen_toString(...) endif if a:0 > 3 let filter = a:4 + if filter == 'haml' + let type = 'haml' + endif else let filter = 'html' endif @@ -1138,7 +1141,6 @@ function! s:zen_toString(...) let inner = '' if len(current.child) == 1 && len(current.child[0].name) == 0 - "let str .= s:zen_toString(current.child[0], type, inline, filter) let lines = split(current.child[0].value[1:-2], "\n") let str .= " " . lines[0] for line in lines[1:]