Better rendering of hide-details-summary in emails

Well, I’m fully in agreement that the HTML version is sub-optimal. I started looking for the cause of that but haven’t isolated it yet. I got as far as finding in user_notifications_helper.rb :

  def format_for_email(post, use_excerpt)
    html = use_excerpt ? post.excerpt : post.cooked
    PrettyText.format_for_email(html, post).html_safe
  end

And examined post.excerpt to see details aren’t being squashed there. So it’s probably PrettyText.format_for_email, but I haven’t gotten toreading-that-code/testing/proving that.

4 лайка