diff --git a/decompiler/sl2decompiler.py b/decompiler/sl2decompiler.py index 2fc8156e..f5db203e 100644 --- a/decompiler/sl2decompiler.py +++ b/decompiler/sl2decompiler.py @@ -480,7 +480,7 @@ def sort_keywords_and_children(self, node, immediate_block=False, ignore_childre # If there are none, we need to insert one. Inserting it at the start is preferable. if keywords_somewhere: # if we have no contents: put them on the first line available - if not contents_grouped: + if not contents_grouped or self.options.tag_outside_block: contents_grouped.append((start_lineno, "keywords", keywords_somewhere)) # if there's multiple empty lines after the statement, fill them with it