This commit is contained in:
Kovid Goyal 2008-05-02 15:38:52 -07:00
parent 8d3c4f56c5
commit 0ce2844d4b

View File

@ -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')])