From 3e41aa0feb17cd207150723d34affbc7f44ae144 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 19 Apr 2012 22:18:50 +0530 Subject: [PATCH] MOBI Output: Fix underline style applied to parent element not getting inherited by children. Fixes #985711 (Underline formatting disappears with bookmark) --- src/calibre/ebooks/oeb/stylizer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/ebooks/oeb/stylizer.py b/src/calibre/ebooks/oeb/stylizer.py index 20be750925..0c492ec957 100644 --- a/src/calibre/ebooks/oeb/stylizer.py +++ b/src/calibre/ebooks/oeb/stylizer.py @@ -731,7 +731,7 @@ class Style(object): parent = self._get_parent() if parent is not None: pcss = parent._style.get('text-decoration', None) - if css in ('none', None) and pcss not in (None, 'none'): + if css in ('none', None, 'inherit') and pcss not in (None, 'none'): return pcss return css