# Rendering of e-mail template adds unnecessary whitespace

**URL:** <https://meta.discourse.org/t/rendering-of-e-mail-template-adds-unnecessary-whitespace/62399>\
**Category:** Feature\
**Created:** [10 Maggio 2017, 2:21am UTC](https://meta.discourse.org/t/rendering-of-e-mail-template-adds-unnecessary-whitespace/62399 "2017-05-10T02:21:40Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![neil](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/neil/32/102150_2.png) [@neil](https://meta.discourse.org/u/neil)\
**Post date:** [10 Maggio 2017, 6:09pm UTC](https://meta.discourse.org/t/rendering-of-e-mail-template-adds-unnecessary-whitespace/62399/7 "2017-05-10T18:09:10Z")

</div>

Fixed.

> <https://github.com/discourse/discourse/commit/5be7a2dad4a3aab55cda43a92a88d39e21011271>

Looks like there was old code trying to indent posts, and it probably worked great… for two days in 2013. [This commit](https://github.com/discourse/discourse/commit/3e7b418ea8d7bb57e5d939ab43c9338170e8f734) became obsolete two days later by [this commit](https://github.com/discourse/discourse/commit/366cb1314063feceff80c0beb8d0ade441e5397f) when a custom html template was used instead of the markdown. Now we allow customized email templates to be used for HTML, which unearthed this archaeological treasure.

---

_[View the full topic](https://meta.discourse.org/t/rendering-of-e-mail-template-adds-unnecessary-whitespace/62399)._
