mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-17 18:09:25 +02:00
Strip newline
This commit is contained in:
parent
32463dd7a7
commit
4c84ad8456
4 changed files with 13 additions and 18 deletions
|
@ -577,12 +577,9 @@ class DomainRequest(TimeStampedModel):
|
|||
# Return the content of the rendered views
|
||||
context = {"domain_request": self}
|
||||
|
||||
# autoescape off adds a newline to the beginning of the email.
|
||||
# This is fine when the email is rendered, but we don't need this for display.
|
||||
email_body_text = template.render(context=context).lstrip().lstrip("\n")
|
||||
return {
|
||||
"subject_text": subject_template.render(context=context),
|
||||
"email_body_text": email_body_text
|
||||
"email_body_text": template.render(context=context)
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue