diff --git a/blueprintcompiler/formatter.py b/blueprintcompiler/formatter.py index 7106261..52ee2cb 100644 --- a/blueprintcompiler/formatter.py +++ b/blueprintcompiler/formatter.py @@ -127,16 +127,14 @@ class Format: prev_line_type in [LineType.CHILD_TYPE, LineType.COMMENT] or prev_line_type == LineType.BLOCK_OPEN ): - # end_str = ( - # end_str.strip() - # + "\n\n" - # + (indent_item * (indent_levels - 1)) - # ) - commit_current_line(LineType.BLOCK_OPEN, True, 2) - else: - commit_current_line( - LineType.BLOCK_OPEN, + end_str = ( + end_str.strip() + + "\n\n" + + (indent_item * (indent_levels - 1)) ) + commit_current_line( + LineType.BLOCK_OPEN, + ) elif str_item == "]" and is_child_type: commit_current_line(