odd formatting
This commit is contained in:
parent
2af6cd616d
commit
61b330abb4
1 changed files with 1 additions and 3 deletions
|
@ -90,9 +90,7 @@ module Email
|
||||||
lines = @body.lines.to_a
|
lines = @body.lines.to_a
|
||||||
range_end = 0
|
range_end = 0
|
||||||
|
|
||||||
email_year =
|
email_year = lines.each_with_index do |l, idx|
|
||||||
lines.each_with_index do |l, idx|
|
|
||||||
|
|
||||||
break if l =~ /\A\s*\-{3,80}\s*\z/ ||
|
break if l =~ /\A\s*\-{3,80}\s*\z/ ||
|
||||||
l =~ Regexp.new("\\A\\s*" + I18n.t('user_notifications.previous_discussion') + "\\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.
|
# This one might be controversial but so many reply lines have years, times and end with a colon.
|
||||||
|
|
Reference in a new issue