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
diff --git a/entities.c b/entities.c
index afa871b..a230666 100644
--- a/entities.c
+++ b/entities.c
@@ -708,7 +708,10 @@
/*
* We could do multiple things here. Just save as a char ref
*/
- snprintf(buf, sizeof(buf), "&#x%X;", val);
+ if (html)
+ snprintf(buf, sizeof(buf), "&#%d;", val);
+ else
+ snprintf(buf, sizeof(buf), "&#x%X;", val);
buf[sizeof(buf) - 1] = 0;
ptr = buf;
while (*ptr != 0) *out++ = *ptr++;