From 999e7ac4bcd2441cf01a066eb81d87e9d0714f28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20Hanol?= Date: Wed, 24 Feb 2016 11:38:12 +0100 Subject: [PATCH] FIX: newlines around attachments in received emails --- lib/email/receiver.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/email/receiver.rb b/lib/email/receiver.rb index 18e3e2dfbc4..71c2d9e9bac 100644 --- a/lib/email/receiver.rb +++ b/lib/email/receiver.rb @@ -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