From 1bb9b1cd4b056f706d677d45e73ad2809a22f676 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 14 Apr 2012 09:02:22 +0530 Subject: [PATCH] MOBI Output: Handle background color specified on and in addition to tags. Fixes #980813 ([Enhancementt/bug] gray background in mobi) --- src/calibre/ebooks/mobi/mobiml.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/ebooks/mobi/mobiml.py b/src/calibre/ebooks/mobi/mobiml.py index 7cda4b0a57..4af7fdbf2c 100644 --- a/src/calibre/ebooks/mobi/mobiml.py +++ b/src/calibre/ebooks/mobi/mobiml.py @@ -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)