Skip to content

Commit

Permalink
quick [FIX] spm_parser bug on multiline definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
remiadon committed Jun 18, 2021
1 parent 16cfc0a commit 564df3a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bids_prov/spm_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ def preproc_param_value(val):
def readlines(filename):
with open(filename) as fd:
for line in fd:
if line.count("{") != line.count("}"):
# TODO handle multiline definition
continue
if line.startswith("matlabbatch"):
yield line[:-1] # remove "\n"

Expand Down

0 comments on commit 564df3a

Please sign in to comment.