From ad04058c24b2291a8c2694fb6ad964884d3a8cd3 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 17 Jan 2009 13:40:29 -0800 Subject: [PATCH] IGN:Fix any2lit now disables any2epub font rescaling and enables splitting on page breaks --- src/calibre/ebooks/lit/from_any.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/calibre/ebooks/lit/from_any.py b/src/calibre/ebooks/lit/from_any.py index af368408ba..f6813caf91 100644 --- a/src/calibre/ebooks/lit/from_any.py +++ b/src/calibre/ebooks/lit/from_any.py @@ -38,8 +38,10 @@ def any2lit(opts, path): os.mkdir(oebdir) opts.output = os.path.join(tdir, 'dummy.epub') opts.profile = 'None' - opts.dont_split_on_page_breaks = True + orig_bfs = opts.base_font_size2 + opts.base_font_size2 = 0 any2epub(opts, path, create_epub=False, oeb_cover=True, extract_to=oebdir) + opts.base_font_size2 = orig_bfs opf = glob.glob(os.path.join(oebdir, '*.opf'))[0] opts.output = orig_output logging.getLogger('html2epub').info(_('Creating LIT file from EPUB...'))