E-Mail: Do not use .prettify(), it does not preserve the original whitespsace

This commit is contained in:
Raphael Michel
2020-07-16 17:15:57 +02:00
parent 980f4012bc
commit 1c84de9ab2

View File

@@ -414,7 +414,7 @@ def replace_images_with_cid_paths(body_html):
image['src'] = "cid:%s" % cid_id
return email.prettify(), cid_images
return str(email), cid_images
else:
return body_html, []