FIX: newlines around attachments in received emails
This commit is contained in:
parent
415efd0f5b
commit
999e7ac4bc
|
@ -292,7 +292,7 @@ module Email
|
||||||
if attachment.content_type.start_with?("image/") && options[:raw][/\[image: .+ \d+\]/]
|
if attachment.content_type.start_with?("image/") && options[:raw][/\[image: .+ \d+\]/]
|
||||||
options[:raw].sub!(/\[image: .+ \d+\]/, attachment_markdown(upload))
|
options[:raw].sub!(/\[image: .+ \d+\]/, attachment_markdown(upload))
|
||||||
else
|
else
|
||||||
options[:raw] << "\n#{attachment_markdown(upload)}\n"
|
options[:raw] << "\n\n#{attachment_markdown(upload)}\n\n"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
ensure
|
ensure
|
||||||
|
|
Loading…
Reference in New Issue