From 12649863c9a823bc7e329e29039c4dfe81b67e67 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 30 Apr 2011 09:05:30 -0600 Subject: [PATCH] Proper fix for the MOBI font size issue (got my input and output profiles mixed up) --- src/calibre/ebooks/oeb/stylizer.py | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/calibre/ebooks/oeb/stylizer.py b/src/calibre/ebooks/oeb/stylizer.py index c86458c901..54276441d2 100644 --- a/src/calibre/ebooks/oeb/stylizer.py +++ b/src/calibre/ebooks/oeb/stylizer.py @@ -124,15 +124,16 @@ 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 = None - for x in input_profiles(): - if x.short_name == 'sony': - self.profile = x - break + self.profile = profile if self.profile is None: - self.profile = opts.input_profile + from calibre.customize.ui import output_profiles + for x in output_profiles(): + if x.short_name == 'default': + self.profile = x + break + if self.profile is None: + self.profile = opts.output_profile self.logger = oeb.logger item = oeb.manifest.hrefs[path] basename = os.path.basename(path)