From 61b330abb43822f816a54e060ab31a94cd6cdfaf Mon Sep 17 00:00:00 2001 From: Sam <sam.saffron@gmail.com> Date: Tue, 30 Jul 2013 17:37:16 +1000 Subject: [PATCH] odd formatting --- lib/email/receiver.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/email/receiver.rb b/lib/email/receiver.rb index b2b8e5d03..8749745dd 100644 --- a/lib/email/receiver.rb +++ b/lib/email/receiver.rb @@ -90,9 +90,7 @@ module Email lines = @body.lines.to_a range_end = 0 - email_year = - lines.each_with_index do |l, idx| - + email_year = lines.each_with_index do |l, idx| break if l =~ /\A\s*\-{3,80}\s*\z/ || l =~ Regexp.new("\\A\\s*" + I18n.t('user_notifications.previous_discussion') + "\\s*\\Z") || # This one might be controversial but so many reply lines have years, times and end with a colon.