diff --git a/site_ansto/instrument/util/gen_sct.py b/site_ansto/instrument/util/gen_sct.py index 63b8ec68..dfa279c2 100755 --- a/site_ansto/instrument/util/gen_sct.py +++ b/site_ansto/instrument/util/gen_sct.py @@ -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