Pretty-up the spacing around the conditional code in gen_sct.py

This commit is contained in:
Douglas Clowes
2014-11-20 12:49:43 +11:00
parent 225c4c5ee7
commit c838e4ffe2

View File

@ -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