Pretty-up the spacing around the conditional code in gen_sct.py
This commit is contained in:
@ -1586,7 +1586,10 @@ def put_group(MyDriver, MyGroup):
|
||||
for idx, line in enumerate(txt):
|
||||
if len(line) > 0:
|
||||
txt[idx] = ' ' + line
|
||||
if len(txt[0]) == 0:
|
||||
txt.pop(0)
|
||||
txt.insert(0, ' if {%s} {' % MyGroup['conditional'])
|
||||
txt.insert(0, '')
|
||||
txt.append(' }')
|
||||
|
||||
return txt
|
||||
|
Reference in New Issue
Block a user