Strip trailing whitespace from lines before joining them.
This commit is contained in:
parent
69a3cd04a7
commit
a7368d7f8a
1 changed files with 1 additions and 1 deletions
|
@ -24,7 +24,7 @@ mail = Mail.new(STDIN)
|
|||
message = Message.new(:sender => from, :recipient => to,
|
||||
:sent_on => Time.now.getutc,
|
||||
:title => mail["Subject"],
|
||||
:body => mail.body.join("\n"))
|
||||
:body => mail.body.map { |l| l.rstrip }.join("\n"))
|
||||
message.save!
|
||||
|
||||
Notifier::deliver_message_notification(message)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue