In move_nav_to_end, add nav to spine if not present.

This commit is contained in:
Ethan Dalool 2019-08-18 22:38:40 -07:00
parent 0004b53032
commit 87f1de1dc5

View file

@ -839,8 +839,10 @@ class Epub:
if id == nav:
spine.append(spine.pop(index))
break
self.set_spine_order(spine)
else:
spine.append(nav)
self.set_spine_order(spine)
self.set_spine_linear(nav, False)
def normalize_directory_structure(self):