From a6bb25529a5df92b355f8e4b2a712c2aa3ff1b26 Mon Sep 17 00:00:00 2001 From: Takashi Kokubun Date: Wed, 19 Apr 2017 03:01:03 +0900 Subject: [PATCH] Oops, this was not intentional... Fix for https://github.com/haml/haml/commit/aa4c397410312ab3c3ee6191110f5e595e5eea00. That was unrelated to this... --- lib/haml/helpers/action_view_mods.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/haml/helpers/action_view_mods.rb b/lib/haml/helpers/action_view_mods.rb index 44c51f09..0330c505 100644 --- a/lib/haml/helpers/action_view_mods.rb +++ b/lib/haml/helpers/action_view_mods.rb @@ -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)}