mirror of
https://github.com/transmission/transmission
synced 2025-03-04 10:38:13 +00:00
Don't print trailing space char on each line when saving JSON
This commit is contained in:
parent
5d48c2d3e9
commit
2804335d05
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue