Skip to content

Commit

Permalink
Allow 'application/xhtml+xml' mimetype for content (wking#108)
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-v authored Aug 31, 2020
1 parent 10412db commit b6b4813
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rss2email/feed.py
Original file line number Diff line number Diff line change
Expand Up @@ -773,9 +773,9 @@ def _get_entry_content(self, entry):
if entry.get('summary_detail', None):
contents.append(entry.summary_detail)
if self.html_mail:
types = ['text/html', 'text/plain']
types = ['application/xhtml+xml', 'text/html', 'text/plain']
else:
types = ['text/plain', 'text/html']
types = ['text/plain', 'text/html', 'application/xhtml+xml']
for content_type in types:
for content in contents:
if content['type'] == content_type:
Expand Down

0 comments on commit b6b4813

Please sign in to comment.