mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 06:03:44 +02: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
1 changed files with 1 additions and 0 deletions
|
|
@ -1117,6 +1117,7 @@ def s_style_style(self, tag, attrs):
|
|||
|
||||
# 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…
Reference in a new issue