mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
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:
parent
15aa3fb472
commit
1bb9b1cd4b
@ -473,7 +473,7 @@ class MobiMLizer(object):
|
|||||||
if tag in TABLE_TAGS and self.ignore_tables:
|
if tag in TABLE_TAGS and self.ignore_tables:
|
||||||
tag = 'span' if tag == 'td' else 'div'
|
tag = 'span' if tag == 'td' else 'div'
|
||||||
|
|
||||||
if tag == 'table':
|
if tag in ('table', 'td', 'tr'):
|
||||||
col = style.backgroundColor
|
col = style.backgroundColor
|
||||||
if col:
|
if col:
|
||||||
elem.set('bgcolor', col)
|
elem.set('bgcolor', col)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user