mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-02 09:15:36 +01:00
...
This commit is contained in:
parent
4f106199d6
commit
6691efbab0
1 changed files with 2 additions and 0 deletions
|
|
@ -314,6 +314,8 @@ def process_children(node, parent):
|
|||
if child.n is 'head':
|
||||
process_children(child, document.head)
|
||||
elif child.n is 'body':
|
||||
if not document.body:
|
||||
document.documentElement.appendChild(document.createElement('body'))
|
||||
if not body_done:
|
||||
body_done = True
|
||||
apply_attributes(child, document.body, ns_map)
|
||||
|
|
|
|||
Loading…
Reference in a new issue