mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-06 15:05:05 +01:00
...
This commit is contained in:
parent
3f0582ec3f
commit
fee9953405
1 changed files with 1 additions and 0 deletions
|
|
@ -248,6 +248,7 @@ def parse_html(data, log=None, decoder=None, preprocessor=None,
|
|||
# Remove DOCTYPE declaration as it messes up parsing
|
||||
# In particular, it causes tostring to insert xmlns
|
||||
# declarations, which messes up the coercing logic
|
||||
pre = ''
|
||||
idx = data.find('<html')
|
||||
if idx == -1:
|
||||
idx = data.find('<HTML')
|
||||
|
|
|
|||
Loading…
Reference in a new issue