mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
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:
parent
e0af0192b7
commit
3e41aa0feb
@ -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
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user