mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
ODT Input: Fix custom styles with a dot in their name not being inherited. Fixes #1478346 [Attributes lost for hierarchical custom styles when reading odt documents](https://bugs.launchpad.net/calibre/+bug/1478346)
This commit is contained in:
parent
de0f59d6d1
commit
708ee5521a
@ -1117,6 +1117,7 @@ dl.notes dd:last-of-type { page-break-after: avoid }
|
||||
|
||||
# Then load the parent style if we find it
|
||||
if parent:
|
||||
parent = parent.replace(".", "_")
|
||||
parent = "%s-%s" % (sfamily, parent)
|
||||
parent = special_styles.get(parent, "."+parent)
|
||||
if parent in self.styledict:
|
||||
|
Loading…
x
Reference in New Issue
Block a user