feed: Remove <table> elements from HTML mail
authorW. Trevor King <wking@tremily.us>
Tue, 9 Apr 2013 19:30:11 +0000 (15:30 -0400)
committerW. Trevor King <wking@tremily.us>
Tue, 9 Apr 2013 19:45:19 +0000 (15:45 -0400)
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 <rui.carmo@gmail.com>
Signed-off-by: W. Trevor King <wking@tremily.us>
rss2email/feed.py

index 23b914ad6147712d56100f34b8fa8d94ff26e73c..7cafde92abb193322568e6b80596c620a5ffa092 100644 (file)
@@ -684,13 +684,13 @@ class Feed (object):
                     '<div id="entry>',
                     '<h1 class="header"><a href="{}">{}</a></h1>'.format(
                         link, subject),
-                    '<div id="body"><table><tr><td>',
+                    '<div id="body">',
                     ])
             if content['type'] in ('text/html', 'application/xhtml+xml'):
                 lines.append(content['value'].strip())
             else:
                 lines.append(_saxutils.escape(content['value'].strip()))
-            lines.append('</td></tr></table></div>')
+            lines.append('</div>')
             lines.extend([
                     '<div class="footer">'
                     '<p>URL: <a href="{0}">{0}</a></p>'.format(link),