1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2024-10-26 20:25:14 +03:00

Insert space between pubid and sysid when both passed to

* xmlwriter.c: Insert space between pubid and sysid when both
  passed to xmlTextWriterStartDTD and indenting not being used.
  Remove no longer used Mem callbacks.
This commit is contained in:
Rob Richards 2005-12-09 17:52:21 +00:00
parent dcac4fce1d
commit ffe47feb27
2 changed files with 10 additions and 35 deletions

View File

@ -1,3 +1,9 @@
Fri Dec 9 18:57:31 CET 2005 Rob Richards <rrichards@ctindustries.net>
* xmlwriter.c: Insert space between pubid and sysid when both
passed to xmlTextWriterStartDTD and indenting not being used.
Remove no longer used Mem callbacks.
Fri Dec 9 11:01:16 CET 2005 Kasimier Buchcik <libxml2-cvs@cazic.ne>
* runsuite.c: Changed to instantly mark instance-tests as

View File

@ -2855,8 +2855,11 @@ xmlTextWriterStartDTD(xmlTextWriterPtr writer,
if (count < 0)
return -1;
sum += count;
} else if (writer->indent) {
} else {
if (writer->indent)
count = xmlOutputBufferWriteString(writer->out, "\n ");
else
count = xmlOutputBufferWrite(writer->out, 1, " ");
if (count < 0)
return -1;
sum += count;
@ -4287,40 +4290,6 @@ xmlCmpTextWriterNsStackEntry(const void *data0, const void *data1)
return rc;
}
/**
* xmlTextWriterWriteMemCallback:
* @context: the xmlBufferPtr
* @str: the data to write
* @len: the length of the data
*
* Write callback for the xmlOutputBuffer with target xmlBuffer
*
* Returns -1, 0, 1
*/
static int
xmlTextWriterWriteMemCallback(void *context, const xmlChar * str, int len)
{
xmlBufferPtr buf = (xmlBufferPtr) context;
xmlBufferAdd(buf, str, len);
return len;
}
/**
* xmlTextWriterCloseMemCallback:
* @context: the xmlBufferPtr
*
* Close callback for the xmlOutputBuffer with target xmlBuffer
*
* Returns -1, 0, 1
*/
static int
xmlTextWriterCloseMemCallback(void *context ATTRIBUTE_UNUSED)
{
return 0;
}
/**
* xmlTextWriterWriteDocCallback:
* @context: the xmlBufferPtr