From c838e4ffe27c26e52cd34718bd0da495eaa564d8 Mon Sep 17 00:00:00 2001 From: Douglas Clowes Date: Thu, 20 Nov 2014 12:49:43 +1100 Subject: [PATCH] Pretty-up the spacing around the conditional code in gen_sct.py --- site_ansto/instrument/util/gen_sct.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/site_ansto/instrument/util/gen_sct.py b/site_ansto/instrument/util/gen_sct.py index 229cf991..3bc03b8d 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