mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-26 15:25:19 +01:00
LRF Output: Base font size rescaling now uses both OEB and LRF algorithms.
This commit is contained in:
parent
3725e7eb79
commit
d57e1d98c3
2 changed files with 2 additions and 2 deletions
|
|
@ -29,7 +29,7 @@ def f2s(f):
|
|||
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
|
||||
|
|
|
|||
|
|
@ -301,7 +301,7 @@ def extract_content(self, output_dir, parse_cache):
|
|||
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':
|
||||
|
|
|
|||
Loading…
Reference in a new issue