From fcc7b01ba7e7d35a8c4e29cf843b1e99ee0ad2d7 Mon Sep 17 00:00:00 2001 From: hcatlin Date: Thu, 2 Nov 2006 21:26:37 +0000 Subject: [PATCH] This fixes the "blank line is not ignored" bug that has been around for a while. This was reported by Steve Ross. git-svn-id: svn://hamptoncatlin.com/haml/branches/edge@108 7063305b-7217-0410-af8c-cdc13e5119b9 --- lib/haml/engine.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/haml/engine.rb b/lib/haml/engine.rb index 4441fecc..c838ed4c 100644 --- a/lib/haml/engine.rb +++ b/lib/haml/engine.rb @@ -135,7 +135,7 @@ module Haml count, line = count_soft_tabs(line) suppress_render = handle_multiline(count, line, index) - if !suppress_render && count && line + if !suppress_render && count && line && (line.strip.size > 0) count, line = process_line(count, line, index) end end