mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 18:54:09 -04:00
Fix #647
This commit is contained in:
parent
8d3c4f56c5
commit
0ce2844d4b
@ -133,7 +133,7 @@ class LrsParser(object):
|
|||||||
toc = self.soup.find('toc')
|
toc = self.soup.find('toc')
|
||||||
if toc:
|
if toc:
|
||||||
for tag in toc.findAll('toclabel'):
|
for tag in toc.findAll('toclabel'):
|
||||||
label = self.tag_to_string(tag).encode('ascii', 'ignore') # Bug in SONY reader software cant handle non ascii toc labels
|
label = self.tag_to_string(tag)
|
||||||
self.book.addTocEntry(label, self.parsed_objects[tag.get('refobj')])
|
self.book.addTocEntry(label, self.parsed_objects[tag.get('refobj')])
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user