Merge branch 'stable'

This commit is contained in:
Nathan Weizenbaum 2008-07-03 23:10:58 -04:00
commit 44d7f289c2
1 changed files with 1 additions and 1 deletions

View File

@ -311,7 +311,7 @@ module Haml
#
def haml_tag(name, *rest, &block)
name = name.to_s
text = rest.shift.to_s unless rest.first.is_a? Symbol
text = rest.shift.to_s unless [Symbol, Hash, NilClass].any? {|t| rest.first.is_a? t}
flags = []
flags << rest.shift while rest.first.is_a? Symbol
attributes = Haml::Precompiler.build_attributes(haml_buffer.html?,