stripped-html should be considered html and not plain (for newsletters). Was causing encoding issues.

This commit is contained in:
Samuel Clay 2016-05-23 12:49:15 +08:00
parent c3dee67c29
commit 4e3e5c7637

View file

@ -126,8 +126,8 @@ class EmailNewsletter:
return params['body-enriched']
if 'body-html' in params and not force_plain:
return params['body-html']
if 'stripped-html' in params:
return linkify(linebreaks(params['stripped-html']))
if 'stripped-html' in params and not force_plain:
return params['stripped-html']
if 'body-plain' in params:
return linkify(linebreaks(params['body-plain']))