Skip to content

Commit

Permalink
String are now immutable by default
Browse files Browse the repository at this point in the history
  • Loading branch information
nhoizey committed Jun 2, 2018
1 parent 4d9a5ba commit ca68ba7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/jekyll/cloudinary.rb
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ def render(context)
end

# alt and title attributes should go only to the <img> even when there is a caption
img_attr = ""
img_attr = "".dup
if html_attr["alt"]
img_attr << " alt=\"#{html_attr["alt"]}\""
html_attr.delete("alt")
Expand Down

0 comments on commit ca68ba7

Please sign in to comment.