Fix a buffer-tabulation bug involving <.
This commit is contained in:
parent
fcca7e0987
commit
7c13afdeb7
|
@ -114,7 +114,7 @@ module Haml
|
|||
result = html_escape(result) if escape_html
|
||||
|
||||
has_newline = result.include?("\n")
|
||||
if in_tag && (@options[:ugly] || !has_newline || preserve_tag)
|
||||
if in_tag && !nuke_inner_whitespace && (@options[:ugly] || !has_newline || preserve_tag)
|
||||
@buffer << result
|
||||
@real_tabs -= 1
|
||||
return
|
||||
|
|
|
@ -32,3 +32,9 @@
|
|||
Bar
|
||||
</div></q>
|
||||
</p>
|
||||
<p>
|
||||
<q>foo</q>
|
||||
<q a='2'>
|
||||
bar
|
||||
</q>
|
||||
</p>
|
||||
|
|
|
@ -24,3 +24,9 @@
|
|||
%div
|
||||
Foo
|
||||
Bar
|
||||
|
||||
-# Regression test
|
||||
%p
|
||||
%q<= "foo"
|
||||
%q{:a => 1 + 1}
|
||||
bar
|
||||
|
|
Loading…
Reference in New Issue