mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #1384 (Error when converting to LRF)
This commit is contained in:
parent
a811045b92
commit
1fa6c98ae0
@ -1920,7 +1920,7 @@ def process_file(path, options, logger=None):
|
|||||||
options.anchor_ids = True
|
options.anchor_ids = True
|
||||||
files = options.spine if (options.use_spine and hasattr(options, 'spine')) else [path]
|
files = options.spine if (options.use_spine and hasattr(options, 'spine')) else [path]
|
||||||
conv = HTMLConverter(book, fonts, options, logger, files)
|
conv = HTMLConverter(book, fonts, options, logger, files)
|
||||||
if options.use_spine and hasattr(options, 'toc'):
|
if options.use_spine and hasattr(options, 'toc') and options.toc is not None:
|
||||||
conv.create_toc(options.toc)
|
conv.create_toc(options.toc)
|
||||||
oname = options.output
|
oname = options.output
|
||||||
if not oname:
|
if not oname:
|
||||||
|
@ -422,7 +422,8 @@ def install_man_pages(fatal_errors):
|
|||||||
raise
|
raise
|
||||||
print 'Failed to install MAN pages as help2man is missing from your system'
|
print 'Failed to install MAN pages as help2man is missing from your system'
|
||||||
break
|
break
|
||||||
raw = re.compile(r'^\.IP\s*^([A-Z :]+)$', re.MULTILINE).sub(r'.SS\n\1', p.stdout.read())
|
o = p.stdout.read()
|
||||||
|
raw = re.compile(r'^\.IP\s*^([A-Z :]+)$', re.MULTILINE).sub(r'.SS\n\1', o)
|
||||||
if not raw.strip():
|
if not raw.strip():
|
||||||
print 'Unable to create MAN page for', prog
|
print 'Unable to create MAN page for', prog
|
||||||
continue
|
continue
|
||||||
|
Loading…
x
Reference in New Issue
Block a user