mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Forgot to handle comments when unserializing the new JSON format
This commit is contained in:
parent
9f02e70317
commit
e00a8a945c
@ -200,7 +200,12 @@ def process_stack(stack, tag_map, ns_map, load_required, onload):
|
||||
src = node
|
||||
tag_id = v'process_stack.tag_id++'
|
||||
if src.s:
|
||||
elem = document.createElementNS(ns_map[src.s], src.n)
|
||||
if src.n:
|
||||
elem = document.createElementNS(ns_map[src.s], src.n)
|
||||
else:
|
||||
if src.l:
|
||||
parent.appendChild(document.createTextNode(src.l))
|
||||
continue
|
||||
else:
|
||||
elem = document.createElement(src.n)
|
||||
loadable = False
|
||||
|
Loading…
x
Reference in New Issue
Block a user