Skip to content

Commit dae008c

Browse files
committed
adjust whitespace stripping to resolve issue with spaces between opening parenthesis and argument
1 parent 49ce930 commit dae008c

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

picaxepreprocess.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -398,8 +398,7 @@ def progparse(curfilename, called_from_line=None, called_from_file=None):
398398
with open (outputfilename, 'a') as output_file:
399399
output_file.write("'PARSED MACRO "+macroname)
400400
macrocontents=workingline.split("(", maxsplit=1)[1].split(")", maxsplit=1)[0].rstrip()
401-
402-
macros[macroname] = {i + 1: m.rstrip() for i, m in enumerate(macrocontents.split(','))}
401+
macros[macroname] = {i + 1: m.strip() for i, m in enumerate(macrocontents.split(','))}
403402
macros[macroname][0]="'--START OF MACRO: "+macroname+"\n"
404403
preprocessor_info("finished parsing macro contents")
405404
preprocessor_info(macros[macroname])

0 commit comments

Comments
 (0)