fix fc filter.

This commit is contained in:
mattn
2012-10-24 11:21:17 +09:00
parent 7a25848537
commit eed6b2db44

View File

@@ -116,7 +116,11 @@ endfunction
function! zencoding#lang#css#toString(settings, current, type, inline, filters, itemno, indent) function! zencoding#lang#css#toString(settings, current, type, inline, filters, itemno, indent)
let current = a:current let current = a:current
let value = current.value[1:-2] let value = current.value[1:-2]
let value = substitute(value, '^\([^:]\+\):\([^;]*;\)', '\1: \2', '') if zencoding#useFilter(a:filters, 'fc')
let value = substitute(value, '\([^:]\+\):\([^;]*;\)', '\1: \2', '')
else
let value = substitute(value, '\([^:]\+\):\([^;]*;\)', '\1:\2', 'g')
endif
if current.important if current.important
let value = substitute(value, ';', ' !important;', '') let value = substitute(value, ';', ' !important;', '')
endif endif