mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
...
This commit is contained in:
parent
19d2d7ed9a
commit
7cfb439785
@ -117,8 +117,7 @@ class Split(object):
|
|||||||
continue
|
continue
|
||||||
|
|
||||||
page_breaks = list(page_breaks)
|
page_breaks = list(page_breaks)
|
||||||
page_breaks.sort(cmp=
|
page_breaks.sort(key=lambda x:int(x.get('pb_order')))
|
||||||
lambda x,y : cmp(int(x.get('pb_order')), int(y.get('pb_order'))))
|
|
||||||
page_break_ids, page_breaks_ = [], []
|
page_break_ids, page_breaks_ = [], []
|
||||||
for i, x in enumerate(page_breaks):
|
for i, x in enumerate(page_breaks):
|
||||||
x.set('id', x.get('id', 'calibre_pb_%d'%i))
|
x.set('id', x.get('id', 'calibre_pb_%d'%i))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user