1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-07-29 11:41:22 +03:00

do not output hexadecimal charrefs when serializing HTML since some

* encoding.c entities.c: do not output hexadecimal charrefs
  when serializing HTML since some version of Netscape can't
  grok it, generate decimal ones.
* result/HTML/doc3.htm: output changed due to previous test
* parserInternals.c: repair xmlKeepBlanksDefault() broken in 2.4.4
Daniel
This commit is contained in:
Daniel Veillard
2001-09-14 10:29:27 +00:00
parent 008186fc7f
commit 166982816e
5 changed files with 26 additions and 11 deletions

View File

@ -2264,7 +2264,7 @@ retry:
* and continue the transcoding phase, hoping the error
* did not mangle the encoder state.
*/
sprintf((char *) charref, "&#x%X;", cur);
sprintf((char *) charref, "&#%d;", cur);
xmlBufferShrink(in, len);
xmlBufferAddHead(in, charref, -1);