diff --git a/setup/doctype/email_digest/email_digest.py b/setup/doctype/email_digest/email_digest.py
index a14066963f..01026aa6b6 100644
--- a/setup/doctype/email_digest/email_digest.py
+++ b/setup/doctype/email_digest/email_digest.py
@@ -296,13 +296,13 @@ class DocType:
if i>=10:
break
if e.all_day:
- html += """
%s [%s (%s)]
""" % \
+ html += """%s [%s (%s)]""" % \
(e.subject, datetime_in_user_format(e.starts_on), _("All Day"))
else:
- html += "%s [%s - %s]
" % \
+ html += "%s [%s - %s]" % \
(e.subject, datetime_in_user_format(e.starts_on), datetime_in_user_format(e.ends_on))
- return html and 1 or 0, "Upcoming Calendar Events (max 10):
" + html + "
"
+ return html and 1 or 0, "Upcoming Calendar Events (max 10):
"
def get_todo_list(self, user_id):
from utilities.page.todo.todo import get
@@ -313,11 +313,11 @@ class DocType:
for i, todo in enumerate([todo for todo in todo_list if not todo.checked]):
if i>= 10:
break
- html += "%s: %s
" % (todo.priority, todo.description or \
- get_url_to_form(todo.reference_type, todo.reference_name))
+ html += "%s [%s]" % (todo.description or \
+ get_url_to_form(todo.reference_type, todo.reference_name), todo.priority)
- return html and 1 or 0, "To Do (max 10):
" + html + "
"
+ return html and 1 or 0, "To Do (max 10):
"
def get_new_count(self, doctype, label, filter_by_company=True):
if filter_by_company: