Fix bug
This commit is contained in:
2
epub.py
2
epub.py
@@ -283,7 +283,7 @@ class ContentParser(HTMLParser):
|
|||||||
except ValueError:
|
except ValueError:
|
||||||
print("the image is not valid.", i.src)
|
print("the image is not valid.", i.src)
|
||||||
elif isinstance(i, list):
|
elif isinstance(i, list):
|
||||||
data += f'<p>{self.to_local(i, self)}</p>\n'
|
data += f'<p>{self.to_local(i, root)}</p>\n'
|
||||||
else:
|
else:
|
||||||
raise NotImplementedError()
|
raise NotImplementedError()
|
||||||
if self._paragraph_data:
|
if self._paragraph_data:
|
||||||
|
|||||||
Reference in New Issue
Block a user