Fixed bug where multiline parsing conflicted with filters.

git-svn-id: svn://hamptoncatlin.com/haml/trunk@366 7063305b-7217-0410-af8c-cdc13e5119b9
This commit is contained in:
nex3 2007-02-11 07:23:26 +00:00
parent 71397ced0c
commit d524e6619f
3 changed files with 10 additions and 1 deletions

View File

@ -210,7 +210,7 @@ END
if old_line
block_opened = tabs > old_tabs && !line.empty?
suppress_render = handle_multiline(old_tabs, old_line, old_index)
suppress_render = handle_multiline(old_tabs, old_line, old_index) unless @flat_spaces != -1
if !suppress_render
line_empty = old_line.empty?

View File

@ -95,6 +95,9 @@ foo

<div class='foo'>
13
</div>
<pre>
__ ______ __ ______&#x000A;.----.| |--.|__ |.----.| |--..--------.| __ |&#x000A;| __|| ||__ || __|| < | || __ |&#x000A;|____||__|__||______||____||__|__||__|__|__||______|&#x000A;
</pre>
<pre>
foo&#x000A;
bar

View File

@ -125,6 +125,12 @@
%strong indeed!
.foo
= find_and_preserve(13)
%pre
:preserve
__ ______ __ ______
.----.| |--.|__ |.----.| |--..--------.| __ |
| __|| ||__ || __|| < | || __ |
|____||__|__||______||____||__|__||__|__|__||______|
%pre
:preserve
foo