JSON negative number patch

This commit is contained in:
Olof Hagsand 2017-11-13 17:11:31 +00:00
parent 3c41a79102
commit 23e40384f7
4 changed files with 11 additions and 13 deletions

View file

@ -1104,7 +1104,8 @@ xmltree2cbuf(cbuf *cb,
for (i=0; i<level*XML_INDENT; i++)
cprintf(cb, " ");
cprintf(cb, "%s", xml_type2str(xml_type(x)));
if (xml_type(x) != CX_BODY)
cprintf(cb, "%s", xml_type2str(xml_type(x)));
if (xml_namespace(x)==NULL)
cprintf(cb, " %s", xml_name(x));
else