From 57b4fa039745825d6a26a6fb3ef6850518afd63e Mon Sep 17 00:00:00 2001 From: Rebecca Law Date: Mon, 6 Jan 2020 15:37:53 +0000 Subject: [PATCH] Use splitlines instead of split --- app/templates/views/activity/notifications.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/templates/views/activity/notifications.html b/app/templates/views/activity/notifications.html index 09ab70657..0107ff815 100644 --- a/app/templates/views/activity/notifications.html +++ b/app/templates/views/activity/notifications.html @@ -19,7 +19,7 @@ {% if item.status in ('pending-virus-check', 'virus-scan-failed') %} Checking {% else %} - {{ item.to.split('\n')[0] }} + {{ item.to.splitlines()[0] }} {% endif %}

{{ item.preview_of_content }}