diff --git a/src/calibre/ebooks/lit/from_any.py b/src/calibre/ebooks/lit/from_any.py index cd8b5a115c..af368408ba 100644 --- a/src/calibre/ebooks/lit/from_any.py +++ b/src/calibre/ebooks/lit/from_any.py @@ -38,6 +38,7 @@ 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 any2epub(opts, path, create_epub=False, oeb_cover=True, extract_to=oebdir) opf = glob.glob(os.path.join(oebdir, '*.opf'))[0] opts.output = orig_output @@ -56,4 +57,4 @@ def main(args=sys.argv): return 0 if __name__ == '__main__': - sys.exit(main()) \ No newline at end of file + sys.exit(main()) diff --git a/src/calibre/ebooks/lit/writer.py b/src/calibre/ebooks/lit/writer.py index 67450fb385..90fca90738 100644 --- a/src/calibre/ebooks/lit/writer.py +++ b/src/calibre/ebooks/lit/writer.py @@ -725,7 +725,7 @@ def oeb2lit(opts, inpath): outpath = os.path.basename(inpath) outpath = os.path.splitext(outpath)[0] + '.lit' outpath = os.path.abspath(outpath) - context = Context('Firefox', 'MSReader') + context = Context('Browser', 'MSReader') oeb = OEBBook(inpath, logger=logger) tocadder = HTMLTOCAdder() tocadder.transform(oeb, context)