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

Fix spec in #867 for pretty mode removal

This commit is contained in:
Takashi Kokubun 2017-04-19 02:59:06 +09:00
parent 11af7954f3
commit aa4c397410
2 changed files with 4 additions and 4 deletions

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, %w[textarea pre code]).include?(name.to_s)
preserve = haml_buffer.options.fetch(:preserve, []).include?(name.to_s)
if block_given? && block_is_haml?(block) && preserve
return content_tag_without_haml(name, *args) {preserve(&block)}

View file

@ -1,4 +1,4 @@
<div class='o-media@md c-user c-user--premium'>
<img alt='' class='o-media__img@md c-user__photo c-avatar' src='' />
<p class='o-media__body@md c-user__bio'>...</p>
</div>
<img alt='' class='o-media__img@md c-user__photo c-avatar' src='' />
<p class='o-media__body@md c-user__bio'>...</p>
</div>