In move_nav_to_end, add nav to spine if not present.

master
Ethan Dalool 2019-08-18 22:38:40 -07:00
parent 0004b53032
commit 87f1de1dc5
1 changed files with 3 additions and 1 deletions

View File

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