From 5c3d791bf3b94c907fca592cc70fdca3d9c6486c Mon Sep 17 00:00:00 2001 From: mike cullerton Date: Thu, 25 Feb 2021 11:08:08 -0500 Subject: [PATCH] UVA asked us to remove the extra whitespace in emails. We removed the string replacement of '\n' -> '
' to solve this. This means you can't purposely add blank lines any more. Trade offs. --- crc/scripts/email.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crc/scripts/email.py b/crc/scripts/email.py index dcef5e8e..2cb49e8f 100644 --- a/crc/scripts/email.py +++ b/crc/scripts/email.py @@ -105,7 +105,7 @@ email ("My Subject", "dhf8r@virginia.edu", pi.email) content = task.task_spec.documentation template = Template(content) rendered = template.render(task.data) - rendered_markdown = markdown.markdown(rendered).replace('\n', '
') + rendered_markdown = markdown.markdown(rendered) wrapped = self.get_cr_connect_wrapper(rendered_markdown) return rendered, wrapped