Fix newlines in HTML emails

This problem was masked because the email message component was also
replacing newlines with `<br>`s.

Implements:
- [ ] https://github.com/alphagov/notifications-utils/pull/60
This commit is contained in:
Chris Hill-Scott
2016-08-01 14:25:28 +01:00
parent 06d6718035
commit 30261cf385
2 changed files with 2 additions and 2 deletions

View File

@@ -50,7 +50,7 @@
{% if not expanded %}
<div class="email-message-body-wrapper">
{% endif %}
{{ body|nl2br }}
{{ body }}
{% if not expanded %}
</div>
<div class='toggle' tabindex='0'>...<span class='visually-hidden'>show full email</span></div>