MOBI Output: Fix underline style applied to parent element not getting inherited by <a> children. Fixes #985711 (Underline formatting disappears with bookmark)

This commit is contained in:
Kovid Goyal 2012-04-19 22:18:50 +05:30
parent e0af0192b7
commit 3e41aa0feb

View File

@ -731,7 +731,7 @@ class Style(object):
parent = self._get_parent() parent = self._get_parent()
if parent is not None: if parent is not None:
pcss = parent._style.get('text-decoration', 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 pcss
return css return css