mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 17:14:06 +02:00
Fix handling of long txt files.
This commit is contained in:
parent
58c15ac8b7
commit
7d736b5c1f
1 changed files with 3 additions and 2 deletions
|
|
@ -85,8 +85,9 @@ def process_file(path, options, logger=None):
|
|||
if not options.output:
|
||||
ext = '.lrs' if options.lrs else '.lrf'
|
||||
options.output = os.path.abspath(os.path.basename(os.path.splitext(path)[0]) + ext)
|
||||
options.output = os.path.abspath(os.path.expanduser(options.output))
|
||||
|
||||
options.output = os.path.abspath(os.path.expanduser(options.output))
|
||||
if not options.title:
|
||||
options.title = os.path.splitext(os.path.basename(path))[0]
|
||||
html_process_file(htmlfile.name, options, logger)
|
||||
else:
|
||||
print open(htmlfile.name, 'rb').read()
|
||||
|
|
|
|||
Loading…
Reference in a new issue