Don't print trailing space char on each line when saving JSON

This commit is contained in:
Mike Gelfand 2015-06-01 20:50:25 +00:00
parent 5d48c2d3e9
commit 2804335d05
1 changed files with 2 additions and 2 deletions

View File

@ -428,7 +428,7 @@ jsonChildFunc (struct jsonWalk * data)
if (!isLast)
{
evbuffer_add (data->out, ", ", data->doIndent ? 2 : 1);
evbuffer_add (data->out, ",", 1);
jsonIndent (data);
}
}
@ -440,7 +440,7 @@ jsonChildFunc (struct jsonWalk * data)
const bool isLast = ++pstate->childIndex == pstate->childCount;
if (!isLast)
{
evbuffer_add (data->out, ", ", data->doIndent ? 2 : 1);
evbuffer_add (data->out, ",", 1);
jsonIndent (data);
}
break;