Skip to content

Commit ae0ac9c

Browse files
Prettify coordsystem JSON output with indentation
1 parent 777bdea commit ae0ac9c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bids_writeelectrodefile.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ function bids_writeelectrodefile(EEG, fileOut, varargin)
241241
else
242242
filename = sprintf('%s_coordsystem.json', fileOut);
243243
end
244-
jsonwrite(filename, coordStruct);
244+
jsonwrite(filename, coordStruct, struct('indent',' '));
245245
end
246246
else
247247
% Single coordinate system (backward compatibility)
@@ -280,7 +280,7 @@ function bids_writeelectrodefile(EEG, fileOut, varargin)
280280
coordsystemStruct.EEGCoordinateSystemDescription = 'EEGLAB';
281281
end
282282
end
283-
jsonwrite( [ fileOut '_coordsystem.json' ], coordsystemStruct);
283+
jsonwrite( [ fileOut '_coordsystem.json' ], coordsystemStruct, struct('indent',' '));
284284
end
285285
end
286286

0 commit comments

Comments
 (0)