Fixes img tag properties

This commit is contained in:
Frederic Hemberger 2011-09-26 15:58:14 +02:00
parent ab62bb9355
commit fdf6af1d25
1 changed files with 2 additions and 2 deletions

View File

@ -30,9 +30,9 @@ module Jekyll
@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