mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-29 11:41:22 +03:00
added a small hack to fix interference between my fixes for bugs 132585
* xinclude.c: added a small hack to fix interference between my fixes for bugs 132585 and 132588. * python/libxml.c: fixed problem with serialization of namespace reported on the mailing list by Anthony Carrico
This commit is contained in:
@ -2473,7 +2473,10 @@ libxml_serializeNode(ATTRIBUTE_UNUSED PyObject * self, PyObject * args)
|
||||
(void) xmlOutputBufferClose(buf);
|
||||
py_retval = libxml_charPtrWrap((char *) c_retval);
|
||||
} else {
|
||||
doc = node->doc;
|
||||
if (node->type == XML_NAMESPACE_DECL)
|
||||
doc = NULL;
|
||||
else
|
||||
doc = node->doc;
|
||||
if ((doc == NULL) || (doc->type == XML_DOCUMENT_NODE)) {
|
||||
xmlOutputBufferPtr buf;
|
||||
xmlCharEncodingHandlerPtr handler = NULL;
|
||||
|
Reference in New Issue
Block a user