FIX: use RFC-compliant previous replies separator

This commit is contained in:
Régis Hanol 2016-02-11 18:48:09 +01:00
parent 3bf931ce54
commit 86819f08c3
2 changed files with 2 additions and 2 deletions

View file

@ -275,7 +275,7 @@ class UserNotifications < ActionMailer::Base
context_posts = context_posts.to_a context_posts = context_posts.to_a
if context_posts.present? if context_posts.present?
context << "---\n*#{I18n.t('user_notifications.previous_discussion')}*\n" context << "-- \n*#{I18n.t('user_notifications.previous_discussion')}*\n"
context_posts.each do |cp| context_posts.each do |cp|
context << email_post_markdown(cp) context << email_post_markdown(cp)
end end

View file

@ -143,7 +143,7 @@ module Email
end end
def previous_replies_regex def previous_replies_regex
@previous_replies_regex ||= /^---\n\*#{I18n.t("user_notifications.previous_discussion")}\*\n/im @previous_replies_regex ||= /^--[- ]\n\*#{I18n.t("user_notifications.previous_discussion")}\*\n/im
end end
def trim_discourse_markers(reply) def trim_discourse_markers(reply)