mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Handle tags inside NCX description element more gracefully
This commit is contained in:
parent
a7b2d2ab83
commit
3fe8646ec6
@ -344,7 +344,8 @@ class OEBReader(object):
|
||||
descriptionElement = xpath(child,
|
||||
'descendant::calibre:meta[@name = "description"]')
|
||||
if descriptionElement:
|
||||
description = descriptionElement[0].text
|
||||
description = etree.tostring(descriptionElement[0],
|
||||
method='text', encoding=unicode).strip()
|
||||
else :
|
||||
description = None
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user