From d57e1d98c39f7e86d17fee426941fe0bfb58404b Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 7 Jul 2009 11:13:49 -0600 Subject: [PATCH] LRF Output: Base font size rescaling now uses both OEB and LRF algorithms. --- src/calibre/ebooks/lrf/output.py | 2 +- src/calibre/ebooks/mobi/reader.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/calibre/ebooks/lrf/output.py b/src/calibre/ebooks/lrf/output.py index 6ca27ba9a4..e88317c402 100644 --- a/src/calibre/ebooks/lrf/output.py +++ b/src/calibre/ebooks/lrf/output.py @@ -29,7 +29,7 @@ class LRFOptions(object): self.use_metadata_cover = True self.output = output self.ignore_tables = opts.linearize_tables - self.base_font_size = 0 + self.base_font_size = opts.base_font_size self.blank_after_para = opts.insert_blank_line self.use_spine = True self.font_delta = 0 diff --git a/src/calibre/ebooks/mobi/reader.py b/src/calibre/ebooks/mobi/reader.py index 8dc8d31150..051395343d 100644 --- a/src/calibre/ebooks/mobi/reader.py +++ b/src/calibre/ebooks/mobi/reader.py @@ -301,7 +301,7 @@ class MobiReader(object): root = html.fromstring(self.processed_html) if root.xpath('descendant::p/descendant::p'): from lxml.html import soupparser - self.log.warning('Malformed markup, parsing using BeatifulSoup') + self.log.warning('Malformed markup, parsing using BeautifulSoup') root = soupparser.fromstring(self.processed_html) if root.tag != 'html':