Merge pull request #2822 from techAPJ/patch-1

FIX: properly align username for suppressed avatar images
This commit is contained in:
Jeff Atwood 2014-09-24 22:49:36 -07:00
commit 63c807e427
1 changed files with 2 additions and 1 deletions

View File

@ -140,6 +140,7 @@ module Email
def strip_avatars_and_emojis
@fragment.css('img').each do |img|
if img['src'] =~ /user_avatar/
img.parent['style'] = "vertical-align: top;" if img.parent.name == 'td'
img.remove
end