|
|
|
@ -2739,8 +2739,6 @@ mxml_write_node(mxml_node_t *node, /* I - Node to write */ |
|
|
|
|
char s[255]; /* Temporary string */ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
while (node != NULL) |
|
|
|
|
{ |
|
|
|
|
/*
|
|
|
|
|
* Print the node value... |
|
|
|
|
*/ |
|
|
|
@ -2821,6 +2819,9 @@ mxml_write_node(mxml_node_t *node, /* I - Node to write */ |
|
|
|
|
* Write children... |
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
mxml_node_t *child; /* Current child */ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if ((*putc_cb)('>', p) < 0) |
|
|
|
|
return (-1); |
|
|
|
|
else |
|
|
|
@ -2828,9 +2829,11 @@ mxml_write_node(mxml_node_t *node, /* I - Node to write */ |
|
|
|
|
|
|
|
|
|
col = mxml_write_ws(node, p, cb, MXML_WS_AFTER_OPEN, col, putc_cb); |
|
|
|
|
|
|
|
|
|
if ((col = mxml_write_node(node->child, p, cb, col, putc_cb, |
|
|
|
|
global)) < 0) |
|
|
|
|
for (child = node->child; child; child = child->next) |
|
|
|
|
{ |
|
|
|
|
if ((col = mxml_write_node(child, p, cb, col, putc_cb, global)) < 0) |
|
|
|
|
return (-1); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* The ? and ! elements are special-cases and have no end tags... |
|
|
|
@ -2985,13 +2988,6 @@ mxml_write_node(mxml_node_t *node, /* I - Node to write */ |
|
|
|
|
return (-1); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* Next node... |
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
node = node->next; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
return (col); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|