From c1ce62261fa3581a8064a8bce83dbb2712d0be8f Mon Sep 17 00:00:00 2001 From: mattn Date: Wed, 20 Jun 2012 12:41:40 +0900 Subject: [PATCH] fix indent for wrapped text. --- autoload/zencoding/lang/html.vim | 1 + 1 file changed, 1 insertion(+) diff --git a/autoload/zencoding/lang/html.vim b/autoload/zencoding/lang/html.vim index 731b0cd..37f75bb 100644 --- a/autoload/zencoding/lang/html.vim +++ b/autoload/zencoding/lang/html.vim @@ -351,6 +351,7 @@ function! zencoding#lang#html#toString(settings, current, type, inline, filters, endif endif let inner = zencoding#toString(child, type, 0, filters, itemno) + let inner = substitute(inner, "^\n", "", 'g') let inner = substitute(inner, "\n", "\n" . indent, 'g') let inner = substitute(inner, "\n" . indent . '$', '', 'g') let str .= inner