libxml2 r3733 - in trunk: . python
- From: veillard svn gnome org
- To: svn-commits-list gnome org
- Subject: libxml2 r3733 - in trunk: . python
- Date: Tue, 8 Apr 2008 09:20:08 +0100 (BST)
Author: veillard
Date: Tue Apr 8 09:20:08 2008
New Revision: 3733
URL: http://svn.gnome.org/viewvc/libxml2?rev=3733&view=rev
Log:
* tree.c: fix a bug introduced when fixing #438208 and reported by
Ashwin
* python/generator.py: fix an infinite loop bug
Daniel
Modified:
trunk/ChangeLog
trunk/python/generator.py
trunk/tree.c
Modified: trunk/python/generator.py
==============================================================================
--- trunk/python/generator.py (original)
+++ trunk/python/generator.py Tue Apr 8 09:20:08 2008
@@ -849,6 +849,9 @@
output.write(indent)
output.write('"""')
while len(val) > 60:
+ if val[0] == " ":
+ val = val[1:]
+ continue
str = val[0:60]
i = string.rfind(str, " ");
if i < 0:
Modified: trunk/tree.c
==============================================================================
--- trunk/tree.c (original)
+++ trunk/tree.c Tue Apr 8 09:20:08 2008
@@ -1785,7 +1785,7 @@
if ((node != NULL) && (node->type != XML_ELEMENT_NODE)) {
if ((eatname == 1) &&
((node->doc == NULL) ||
- (!(xmlDictOwns(node->doc->dict, name) == 0))))
+ (!(xmlDictOwns(node->doc->dict, name)))))
xmlFree((xmlChar *) name);
return (NULL);
}
@@ -1797,7 +1797,7 @@
if (cur == NULL) {
if ((eatname == 1) &&
((node->doc == NULL) ||
- (!(xmlDictOwns(node->doc->dict, name) == 0))))
+ (!(xmlDictOwns(node->doc->dict, name)))))
xmlFree((xmlChar *) name);
xmlTreeErrMemory("building attribute");
return (NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]