applied a patch from Rob Richards fixing a couple of bugs in the writer

* xmlwriter.c: applied a patch from Rob Richards fixing a couple
  of bugs in the writer
Daniel
This commit is contained in:
Daniel Veillard 2005-02-23 14:05:37 +00:00
parent 12d37ab634
commit 614fdc13b7
2 changed files with 13 additions and 2 deletions

View File

@ -1,3 +1,8 @@
Wed Feb 23 15:04:46 CET 2005 Daniel Veillard <daniel@veillard.com>
* xmlwriter.c: applied a patch from Rob Richards fixing a couple
of bugs in the writer
Mon Feb 21 21:51:03 HKT 2005 William Brack <wbrack@mmm.com.hk>
* xmlsave.c: fixed problem when XMLLINT_INDENT was empty (bug 168033).

View File

@ -936,6 +936,12 @@ xmlTextWriterStartElement(xmlTextWriterPtr writer, const xmlChar * name)
return -1;
case XML_TEXTWRITER_NONE:
break;
case XML_TEXTWRITER_ATTRIBUTE:
count = xmlTextWriterEndAttribute(writer);
if (count < 0)
return -1;
sum += count;
/* fallthrough */
case XML_TEXTWRITER_NAME:
count = xmlOutputBufferWriteString(writer->out, ">");
if (count < 0)
@ -1839,8 +1845,8 @@ xmlTextWriterEndAttribute(xmlTextWriterPtr writer)
np = (xmlTextWriterNsStackEntry *) xmlLinkGetData(lk);
if (np != 0) {
namespaceURI = xmlStrdup(np->prefix);
prefix = xmlStrdup(np->uri);
namespaceURI = xmlStrdup(np->uri);
prefix = xmlStrdup(np->prefix);
}
xmlListPopFront(writer->nsstack);