From d71acb2c22cfbe7c54c8d6fd1905bb49bdcbe58f Mon Sep 17 00:00:00 2001 From: mattn Date: Thu, 7 Jun 2012 11:54:37 +0900 Subject: [PATCH] fix comment filter. --- autoload/zencoding/lang/html.vim | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/autoload/zencoding/lang/html.vim b/autoload/zencoding/lang/html.vim index 643dd7f..193a910 100644 --- a/autoload/zencoding/lang/html.vim +++ b/autoload/zencoding/lang/html.vim @@ -376,13 +376,14 @@ function! zencoding#lang#html#toString(settings, current, type, inline, filters, endif endif + if len(comment) > 0 + let str .= "\n" . (inline ? "" : "\n") + endif + if !empty(current.parent) && len(current.parent.name) == 0 || (current.multiplier > 0 && current.multiplier == itemno+1 && stridx(','.settings.html.inline_elements.',', ','.current_name.',') == -1) let str .= "\n" endif - if len(comment) > 0 - let str .= "" . (inline ? "" : "\n") - endif return str endfunction