mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 10:44:09 -04:00
...
This commit is contained in:
parent
1f4e6c22dd
commit
3e97ed39bd
@ -695,7 +695,7 @@ class StylesManager(object):
|
||||
ds_counts = Counter()
|
||||
for block in all_blocks:
|
||||
for run in block.runs:
|
||||
if run.parent_style is not run.style:
|
||||
if run.parent_style is not run.style and run.parent_style and run.style:
|
||||
ds = DescendantTextStyle(run.parent_style, run.style)
|
||||
if ds.properties:
|
||||
run.descendant_style = descendant_style_map.get(ds)
|
||||
|
Loading…
x
Reference in New Issue
Block a user