From 8e75544b8a70d2d483f9711b05dbe4e03de9a5d6 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 11 Jun 2014 11:08:13 +0530 Subject: [PATCH] ... --- src/calibre/ebooks/oeb/polish/fonts.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/calibre/ebooks/oeb/polish/fonts.py b/src/calibre/ebooks/oeb/polish/fonts.py index cd9857d60e..3fa61fbb1e 100644 --- a/src/calibre/ebooks/oeb/polish/fonts.py +++ b/src/calibre/ebooks/oeb/polish/fonts.py @@ -23,7 +23,7 @@ def font_family_data_from_declaration(style, families): font_families = f f = style.getProperty('font-family') if f is not None: - font_families = [x.cssText for x in f] + font_families = [x.cssText for x in f.cssValue] for f in font_families: f = unquote(f) @@ -36,8 +36,8 @@ def font_family_data_from_sheet(sheet, families): elif rule.type == rule.FONT_FACE_RULE: ff = rule.style.getProperty('font-family') if ff is not None: - for f in ff: - families[unquote(f)] = True + for f in ff.cssValue: + families[unquote(f.cssText)] = True def font_family_data(container): families = {}