mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-13 12:53:32 +01:00
Fix #3556 (PDB input fail - OPF contains invalid tours section)
This commit is contained in:
parent
be0a623e65
commit
2efa863948
1 changed files with 1 additions and 1 deletions
|
|
@ -30,7 +30,7 @@ def section_count(self):
|
|||
|
||||
def name(self):
|
||||
self.stream.seek(0)
|
||||
return self.stream.read(32).replace('\x00', '')
|
||||
return re.sub('[^-A-Za-z0-9 ]+', '_', self.stream.read(32).replace('\x00', ''))
|
||||
|
||||
def full_section_info(self, number):
|
||||
if number not in range(0, self.num_sections):
|
||||
|
|
|
|||
Loading…
Reference in a new issue