mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-03-27 18:50:07 +03:00
tentative fix for #126117 character reference in attributes output problem
* tree.c: tentative fix for #126117 character reference in attributes output problem in some cornercase. Daniel
This commit is contained in:
parent
f88d8cf9f1
commit
2f6ff81a4a
@ -1,3 +1,8 @@
|
||||
Mon Dec 8 13:09:39 CET 2003 Daniel Veillard <daniel@veillard.com>
|
||||
|
||||
* tree.c: tentative fix for #126117 character reference in
|
||||
attributes output problem in some cornercase.
|
||||
|
||||
Mon Dec 8 11:08:45 CET 2003 Daniel Veillard <daniel@veillard.com>
|
||||
|
||||
* python/libxml.py: tried to fix the problems reported in
|
||||
|
6
tree.c
6
tree.c
@ -7699,9 +7699,13 @@ xmlDocContentDumpOutput(xmlOutputBufferPtr buf, xmlDocPtr cur,
|
||||
xmlDtdPtr dtd;
|
||||
int is_xhtml = 0;
|
||||
#endif
|
||||
const xmlChar *oldenc = cur->encoding;
|
||||
|
||||
xmlInitParser();
|
||||
|
||||
if (encoding != NULL)
|
||||
cur->encoding = BAD_CAST encoding;
|
||||
|
||||
xmlOutputBufferWriteString(buf, "<?xml version=");
|
||||
if (cur->version != NULL)
|
||||
xmlBufferWriteQuotedString(buf->buffer, cur->version);
|
||||
@ -7754,6 +7758,8 @@ xmlDocContentDumpOutput(xmlOutputBufferPtr buf, xmlDocPtr cur,
|
||||
child = child->next;
|
||||
}
|
||||
}
|
||||
if (encoding != NULL)
|
||||
cur->encoding = oldenc;
|
||||
}
|
||||
#endif /* LIBXML_OUTPUT_ENABLED */
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user