diff --git a/lib/table_helper/footer.rb b/lib/table_helper/footer.rb index 62c770a..b3640db 100644 --- a/lib/table_helper/footer.rb +++ b/lib/table_helper/footer.rb @@ -33,7 +33,7 @@ def html #:nodoc: html_options = @html_options.dup html_options[:style] = "display: none; #{html_options[:style]}".strip if table.empty? && hide_when_empty - content_tag(tag_name, content, html_options) + content_tag(tag_name, content, html_options, false) end private diff --git a/lib/table_helper/header.rb b/lib/table_helper/header.rb index e93da18..3ba038a 100644 --- a/lib/table_helper/header.rb +++ b/lib/table_helper/header.rb @@ -94,7 +94,7 @@ def html html_options = @html_options.dup html_options[:style] = 'display: none;' if table.empty? && hide_when_empty - content_tag(tag_name, content, html_options) + content_tag(tag_name, content, html_options, false) end private diff --git a/lib/table_helper/html_element.rb b/lib/table_helper/html_element.rb index e069287..9a90d8f 100644 --- a/lib/table_helper/html_element.rb +++ b/lib/table_helper/html_element.rb @@ -25,7 +25,7 @@ def initialize(html_options = {}) #:nodoc: # Generates the html representing this element def html - content_tag(tag_name, content, @html_options) + content_tag(tag_name, content, @html_options, false) end private