1
0
Fork 0
mirror of https://github.com/haml/haml.git synced 2022-11-09 12:33:31 -05:00

Oops, this was not intentional...

Fix for aa4c397410.
That was unrelated to this...
This commit is contained in:
Takashi Kokubun 2017-04-19 03:01:03 +09:00
parent aa4c397410
commit a6bb25529a

View file

@ -54,7 +54,7 @@ module ActionView
def content_tag_with_haml(name, *args, &block)
return content_tag_without_haml(name, *args, &block) unless is_haml?
preserve = haml_buffer.options.fetch(:preserve, []).include?(name.to_s)
preserve = haml_buffer.options.fetch(:preserve, %w[textarea pre code]).include?(name.to_s)
if block_given? && block_is_haml?(block) && preserve
return content_tag_without_haml(name, *args) {preserve(&block)}