Fix holdit command undoing manual opf changes.
This commit is contained in:
parent
cf08ce3570
commit
0004b53032
1 changed files with 3 additions and 0 deletions
|
@ -1043,6 +1043,9 @@ def holdit_argparse(args):
|
||||||
book = Epub.open(args.epub)
|
book = Epub.open(args.epub)
|
||||||
print(book.root_directory.absolute_path)
|
print(book.root_directory.absolute_path)
|
||||||
input('Press Enter when ready.')
|
input('Press Enter when ready.')
|
||||||
|
# Saving re-writes the opf from memory, which might undo any manual changes.
|
||||||
|
# So let's re-read it first.
|
||||||
|
book.read_opf(book.opf_filepath)
|
||||||
book.save(args.epub)
|
book.save(args.epub)
|
||||||
|
|
||||||
def merge(input_filepaths, output_filename, do_headerfile=False):
|
def merge(input_filepaths, output_filename, do_headerfile=False):
|
||||||
|
|
Loading…
Reference in a new issue