Commit 614fdc13 authored by Daniel Veillard's avatar Daniel Veillard
Browse files

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
parent 12d37ab6
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).
......
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment