missed a newline

This commit is contained in:
Régis Hanol 2014-04-15 00:04:13 +02:00
parent 2505d18aa9
commit 4a93b1b0bc

View file

@ -208,7 +208,8 @@ module Email
create_post(user, options)
end
def attachment_markdown(upload)if FileHelper.is_image?(upload.original_filename)
def attachment_markdown(upload)
if FileHelper.is_image?(upload.original_filename)
"<img src='#{upload.url}' width='#{upload.width}' height='#{upload.height}'>"
else
"<a class='attachment' href='#{upload.url}'>#{upload.original_filename}</a> (#{number_to_human_size(upload.filesize)})"