From f83b1a5720e036f43b41cac5ed34ff5620251e36 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 22 Jan 2015 22:14:47 +0530 Subject: [PATCH] ... --- src/calibre/ebooks/oeb/polish/report.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/calibre/ebooks/oeb/polish/report.py b/src/calibre/ebooks/oeb/polish/report.py index 9bb1fe78a1..d8c650846a 100644 --- a/src/calibre/ebooks/oeb/polish/report.py +++ b/src/calibre/ebooks/oeb/polish/report.py @@ -8,6 +8,7 @@ __copyright__ = '2015, Kovid Goyal ' import posixpath, os, time, types, re from collections import namedtuple, defaultdict, Counter +from itertools import chain from calibre import prepare_string_for_xml, force_unicode from calibre.ebooks.oeb.base import XPath @@ -212,7 +213,7 @@ def css_data(container, book_locale): for name, inline_sheets in html_sheets.iteritems(): root = container.parsed(name) - for sheet in list(sheets_for_html(name, root)) + inline_sheets: + for sheet in chain(sheets_for_html(name, root), inline_sheets): for rule in rules_in_sheet(sheet): rule_map[rule][name].extend(matches_for_selector(rule.selector, root))