LRF Output: Base font size rescaling now uses both OEB and LRF algorithms.

This commit is contained in:
Kovid Goyal 2009-07-07 11:13:49 -06:00
parent 3725e7eb79
commit d57e1d98c3
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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':