Ignore:
Timestamp:
Jun 1, 2015, 8:50:25 PM (6 years ago)
Author:
mikedld
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/variant-json.c

    r14529 r14535  
    429429                  if (!isLast)
    430430                    {
    431                       evbuffer_add (data->out, ", ", data->doIndent ? 2 : 1);
     431                      evbuffer_add (data->out, ",", 1);
    432432                      jsonIndent (data);
    433433                    }
     
    441441              if (!isLast)
    442442                {
    443                   evbuffer_add (data->out, ", ", data->doIndent ? 2 : 1);
     443                  evbuffer_add (data->out, ",", 1);
    444444                  jsonIndent (data);
    445445                }
Note: See TracChangeset for help on using the changeset viewer.