From d293ab86dc06ad4945c3bbc4d4dd7e3d845871d9 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Tue, 9 Apr 2013 15:30:11 -0400 Subject: [PATCH] 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 --- rss2email/feed.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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([ '