mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
cb9b08b369
commit
b44c42a78c
@ -404,7 +404,7 @@ public:
|
||||
} else if (!write_str_literal("}")) return NULL;
|
||||
}
|
||||
}
|
||||
if (!write_str_literal(",\"nsmap\":")) return NULL;
|
||||
if (!write_str_literal(",\"ns_map\":")) return NULL;
|
||||
if (!this->add_nsmap()) return NULL;
|
||||
if (!write_str_literal("}")) return NULL;
|
||||
|
||||
|
@ -248,7 +248,7 @@ class ContentTest(LibraryBaseTest):
|
||||
# print(raw.decode('utf-8'))
|
||||
data = json.loads(raw)
|
||||
self.ae(data['version'], 1)
|
||||
self.ae(tuple(data['nsmap']), nsmap)
|
||||
self.ae(tuple(data['ns_map']), nsmap)
|
||||
bc = data['tree']['c'][1]['c']
|
||||
self.ae(bc, body_children)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user