MOBI Output: Handle background color specified on <td> and <tr> in addition to <table> tags. Fixes #980813 ([Enhancementt/bug] gray background in mobi)

This commit is contained in:
Kovid Goyal 2012-04-14 09:02:22 +05:30
parent 15aa3fb472
commit 1bb9b1cd4b

View File

@ -473,7 +473,7 @@ class MobiMLizer(object):
if tag in TABLE_TAGS and self.ignore_tables:
tag = 'span' if tag == 'td' else 'div'
if tag == 'table':
if tag in ('table', 'td', 'tr'):
col = style.backgroundColor
if col:
elem.set('bgcolor', col)