Skip to content

Commit

Permalink
Bug fix: Digitizer: Tolerate new line at the end of the montage file
Browse files Browse the repository at this point in the history
  • Loading branch information
ftadel committed Oct 29, 2019
1 parent eed097d commit c106aef
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion toolbox/sensors/panel_digitize.m
Expand Up @@ -1155,7 +1155,9 @@ function AddMontage()
break;
end
spl = regexp(tline,'\s+','split');
newMontage.Labels{end+1} = spl{2};
if (length(spl) >= 2)
newMontage.Labels{end+1} = spl{2};
end
end
% Close file
fclose(fid);
Expand Down

0 comments on commit c106aef

Please sign in to comment.