From fa94e116c6b3c630317a2208267a036d7a551c07 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 29 Apr 2011 21:08:41 -0600 Subject: [PATCH] Revert change in 0.7.58 that caused people with non default input profiles to experience changed output font sizes. While the original change was correct, I'm reverting as I dont want to deal with all the bug reports. --- src/calibre/ebooks/oeb/stylizer.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/calibre/ebooks/oeb/stylizer.py b/src/calibre/ebooks/oeb/stylizer.py index b803a7bd68..c86458c901 100644 --- a/src/calibre/ebooks/oeb/stylizer.py +++ b/src/calibre/ebooks/oeb/stylizer.py @@ -124,8 +124,15 @@ class Stylizer(object): def __init__(self, tree, path, oeb, opts, profile=None, extra_css='', user_css=''): + from calibre.customize.ui import input_profiles self.oeb, self.opts = oeb, opts - self.profile = opts.input_profile + self.profile = None + for x in input_profiles(): + if x.short_name == 'sony': + self.profile = x + break + if self.profile is None: + self.profile = opts.input_profile self.logger = oeb.logger item = oeb.manifest.hrefs[path] basename = os.path.basename(path)