From: W. Trevor King Date: Tue, 9 Apr 2013 19:30:11 +0000 (-0400) Subject: feed: Remove elements from HTML mail X-Git-Tag: v3.3~2 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=d293ab8;p=rss2email.git feed: Remove
elements from HTML mail These were not semantically correct ;). Based on a patch by Rui Carmo [1]. [1]: https://github.com/rcarmo/rss2email/commit/2a015bce9d701035b9af874bd56c46f92382e668 Based-on-patch-by: Rui Carmo Signed-off-by: W. Trevor King --- diff --git a/rss2email/feed.py b/rss2email/feed.py index 23b914a..7cafde9 100644 --- a/rss2email/feed.py +++ b/rss2email/feed.py @@ -684,13 +684,13 @@ class Feed (object): '
{}'.format( link, subject), - '
', + '
', ]) if content['type'] in ('text/html', 'application/xhtml+xml'): lines.append(content['value'].strip()) else: lines.append(_saxutils.escape(content['value'].strip())) - lines.append('
') + lines.append('') lines.extend([ '