Skip to content

Commit 23f7a19

Browse files
committed
squiggly heredoc doesn't work in ruby < 2.3
1 parent 91f60fe commit 23f7a19

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/bootstrap-navbar/helpers/bootstrap4.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,10 @@ def navbar_dropdown_item(text, url = '#', link_options = {}, &block)
9090
link_options[:class] << 'active' if current_url_or_sub_url?(url)
9191
link_options[:class] = link_options[:class].join(' ')
9292
link_attributes = attributes_for_tag(link_options)
93-
prepare_html <<~HTML.chomp!
94-
<a href="#{url}"#{link_attributes}>
95-
#{text}
96-
</a>
93+
prepare_html <<-HTML.chomp!
94+
<a href="#{url}"#{link_attributes}>
95+
#{text}
96+
</a>
9797
HTML
9898
end
9999

0 commit comments

Comments
 (0)