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:
parent
6fc8c421c2
commit
5c3d791bf3
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue