Skip to content
Browse files

Fixes img tag properties

  • Loading branch information...
1 parent ab62bb9 commit fdf6af1d25ddc991c96dc3b4df5f7e913adcd7ef @fhemberger fhemberger committed Sep 26, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 plugins/image_tag.rb
View
4 plugins/image_tag.rb
@@ -30,9 +30,9 @@ def initialize(tag_name, markup, tokens)
@img['title'] = title
@img['alt'] = alt
else
- @img['alt'] = @img['title'].gsub!(/"/, '"')
+ @img['alt'] = @img['title'].gsub!(/"/, '"') if @img['title']
end
- @img['class'].gsub!(/"/, '')
+ @img['class'].gsub!(/"/, '') if @img['class']
end
super
end

0 comments on commit fdf6af1

Please sign in to comment.
Something went wrong with that request. Please try again.