mirror of
https://github.com/darlinghq/darling-libxml2.git
synced 2025-01-10 14:11:54 +00:00
applied patch from Lucas Brasilino fixing an indent problem. Daniel
* xmlwriter.c: applied patch from Lucas Brasilino fixing an indent problem. Daniel
This commit is contained in:
parent
35df6d404d
commit
751c9ec657
@ -1,3 +1,8 @@
|
||||
Mon Jan 5 14:03:59 CET 2004 Daniel Veillard <daniel@veillard.com>
|
||||
|
||||
* xmlwriter.c: applied patch from Lucas Brasilino fixing an indent
|
||||
problem.
|
||||
|
||||
Sun Jan 4 18:54:29 MST 2004 John Fleck <jfleck@inkstain.net>
|
||||
|
||||
* doc/newapi.xsl: change background color of function
|
||||
|
@ -1224,6 +1224,9 @@ xmlTextWriterWriteString(xmlTextWriterPtr writer, const xmlChar * content)
|
||||
break;
|
||||
}
|
||||
|
||||
if (writer->indent)
|
||||
writer->doindent = 0;
|
||||
|
||||
if (buf != 0) {
|
||||
count =
|
||||
xmlOutputBufferWriteString(writer->out, (const char *) buf);
|
||||
@ -1980,7 +1983,6 @@ xmlTextWriterWriteElement(xmlTextWriterPtr writer, const xmlChar * name,
|
||||
if (count == -1)
|
||||
return -1;
|
||||
sum += count;
|
||||
writer->doindent = 0;
|
||||
count = xmlTextWriterEndElement(writer);
|
||||
if (count == -1)
|
||||
return -1;
|
||||
|
Loading…
Reference in New Issue
Block a user