mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-13 09:01:53 +03:00
Return the previous as opposed to the next node (I guess this is the
* python/libxml.c (libxml_prev): Return the previous as opposed to the next node (I guess this is the result of some cut & paste programming:) Daniel
This commit is contained in:
@ -1640,13 +1640,13 @@ libxml_prev(ATTRIBUTE_UNUSED PyObject * self, PyObject * args)
|
||||
case XML_ATTRIBUTE_NODE:{
|
||||
xmlAttrPtr attr = (xmlAttrPtr) cur;
|
||||
|
||||
res = (xmlNodePtr) attr->next;
|
||||
res = (xmlNodePtr) attr->prev;
|
||||
}
|
||||
case XML_NAMESPACE_DECL:
|
||||
res = NULL;
|
||||
break;
|
||||
default:
|
||||
res = cur->next;
|
||||
res = cur->prev;
|
||||
break;
|
||||
}
|
||||
resultobj = libxml_xmlNodePtrWrap(res);
|
||||
|
Reference in New Issue
Block a user