module ActionView::Helpers::TagHelper

def content_tag_with_haml(name, *args, &block)

def content_tag_with_haml(name, *args, &block)
  return content_tag_without_haml(name, *args, &block) unless is_haml?
  preserve = haml_buffer.options[:preserve].include?(name.to_s)
  if block_given? && block_is_haml?(block) && preserve
    return content_tag_without_haml(name, *args) {preserve(&block)}
  end
  returning content_tag_without_haml(name, *args, &block) do |content|
    return Haml::Helpers.preserve(content) if preserve && content
  end
end