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:
Kovid Goyal 2015-07-27 08:52:04 +05:30
parent de0f59d6d1
commit 708ee5521a

View File

@ -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: