Use splitlines instead of split

This commit is contained in:
Rebecca Law
2020-01-06 15:37:53 +00:00
parent f8e7635a1d
commit 57b4fa0397

View File

@@ -19,7 +19,7 @@
{% if item.status in ('pending-virus-check', 'virus-scan-failed') %}
<span class="file-list-filename loading-indicator">Checking</span>
{% else %}
<a class="file-list-filename" href="{{ url_for('.view_notification', service_id=current_service.id, notification_id=item.id) }}">{{ item.to.split('\n')[0] }}</a>
<a class="file-list-filename" href="{{ url_for('.view_notification', service_id=current_service.id, notification_id=item.id) }}">{{ item.to.splitlines()[0] }}</a>
{% endif %}
<p class="file-list-hint">
{{ item.preview_of_content }}