mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
fb2ad29434
commit
7cde6ce243
@ -344,7 +344,7 @@ class Container(ContainerBase): # {{{
|
||||
item_id = 'id'
|
||||
while item_id in all_ids:
|
||||
c += 1
|
||||
item_id = 'id' + f'{c}'
|
||||
item_id = f'id{c}'
|
||||
manifest = self.opf_xpath('//opf:manifest')[0]
|
||||
href = self.name_to_href(name, self.opf_name)
|
||||
item = manifest.makeelement(OPF('item'),
|
||||
|
@ -366,10 +366,10 @@ class FlowSplitter:
|
||||
elif size <= self.max_flow_size:
|
||||
self.split_trees.append(t)
|
||||
self.log.debug(
|
||||
f'\t\t\tCommitted sub-tree #{len(self.split_trees)} ({size / 1024.0} KB)')
|
||||
f'\t\t\tCommitted sub-tree #{len(self.split_trees)} ({size//1024} KB)')
|
||||
else:
|
||||
self.log.debug(
|
||||
f'\t\t\tSplit tree still too large: {size / 1024.0} KB')
|
||||
f'\t\t\tSplit tree still too large: {size//1024} KB')
|
||||
self.split_to_size(t)
|
||||
|
||||
def find_split_point(self, root):
|
||||
|
Loading…
x
Reference in New Issue
Block a user