mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-20 14:29:51 -04:00
Test that addresses display on uploads page
We didn’t have a test that checked for the first two lines of the address being displayed when rendering one-off letters on the uploads page. I double checked in the database and we store addresses in the `to` field with newlines, not commas.
This commit is contained in:
@@ -62,7 +62,7 @@
|
||||
) }}
|
||||
{% elif item.pdf_letter %}
|
||||
<p class="govuk-body govuk-!-margin-bottom-1">
|
||||
{% for line in item.recipient.split(',') %}
|
||||
{% for line in item.recipient.splitlines() %}
|
||||
{% if loop.index < 3 %}
|
||||
{{ line }}<br>
|
||||
{% endif %}
|
||||
|
||||
Reference in New Issue
Block a user