This commit is contained in:
Kovid Goyal 2019-04-14 09:25:07 +05:30
parent 2bdf7f7508
commit 4c7e194a92
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -715,7 +715,7 @@ class OPF(object): # {{{
ids = {i.get('id', None) for i in self.itermanifest()}
manifest_id = 'id1'
c = 1
while manifest_id not in ids:
while manifest_id in ids:
c += 1
manifest_id = 'id%d'%c
if not media_type: