UVA asked us to remove the extra whitespace in emails.

We removed the string replacement of '\n' -> '<br>' to solve this.
This means you can't purposely add blank lines any more.
Trade offs.
This commit is contained in:
mike cullerton 2021-02-25 11:08:08 -05:00
parent 6fc8c421c2
commit 5c3d791bf3
1 changed files with 1 additions and 1 deletions

View File

@ -105,7 +105,7 @@ email ("My Subject", "dhf8r@virginia.edu", pi.email)
content = task.task_spec.documentation content = task.task_spec.documentation
template = Template(content) template = Template(content)
rendered = template.render(task.data) rendered = template.render(task.data)
rendered_markdown = markdown.markdown(rendered).replace('\n', '<br>') rendered_markdown = markdown.markdown(rendered)
wrapped = self.get_cr_connect_wrapper(rendered_markdown) wrapped = self.get_cr_connect_wrapper(rendered_markdown)
return rendered, wrapped return rendered, wrapped