mirror of
https://github.com/discourse/discourse.git
synced 2025-05-21 18:12:32 +08:00
FIX: newlines around attachments in received emails
This commit is contained in:
@ -292,7 +292,7 @@ module Email
|
||||
if attachment.content_type.start_with?("image/") && options[:raw][/\[image: .+ \d+\]/]
|
||||
options[:raw].sub!(/\[image: .+ \d+\]/, attachment_markdown(upload))
|
||||
else
|
||||
options[:raw] << "\n#{attachment_markdown(upload)}\n"
|
||||
options[:raw] << "\n\n#{attachment_markdown(upload)}\n\n"
|
||||
end
|
||||
end
|
||||
ensure
|
||||
|
Reference in New Issue
Block a user