# Better rendering of hide-details-summary in emails

**URL:** <https://meta.discourse.org/t/better-rendering-of-hide-details-summary-in-emails/64056>\
**Category:** Bug\
**Tags:** hide-details\
**Created:** [06.Июнь.2017 20:05:26 UTC](https://meta.discourse.org/t/better-rendering-of-hide-details-summary-in-emails/64056 "2017-06-06T20:05:26Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![elijah](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/elijah/32/104055_2.png) [@elijah](https://meta.discourse.org/u/elijah)\
**Post date:** [29.Июль.2017 02:21:12 UTC](https://meta.discourse.org/t/better-rendering-of-hide-details-summary-in-emails/64056/6 "2017-07-29T02:21:12Z")

</div>

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 :

```plaintext
  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.

---

_[View the full topic](https://meta.discourse.org/t/better-rendering-of-hide-details-summary-in-emails/64056)._
