diff --git a/src/calibre/gui2/viewer/documentview.py b/src/calibre/gui2/viewer/documentview.py index cead396c59..7dc7f7b809 100644 --- a/src/calibre/gui2/viewer/documentview.py +++ b/src/calibre/gui2/viewer/documentview.py @@ -126,8 +126,7 @@ class Document(QWebPage): # {{{ mf.setScrollBarPolicy(Qt.Horizontal, Qt.ScrollBarAlwaysOff) def set_user_stylesheet(self, opts): - bg = opts.background_color or 'white' - brules = ['background-color: %s !important'%bg] + brules = ['background-color: %s !important'%opts.background_color] if opts.background_color else ['background-color: white'] prefix = ''' body { %s } '''%('; '.join(brules))