From 97f07b3ca85552257ea8ae381c679fae83d08032 Mon Sep 17 00:00:00 2001 From: gregorni Date: Tue, 8 Aug 2023 16:47:43 +0200 Subject: [PATCH] Formatter: optimize 1 operation --- blueprintcompiler/formatter.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/blueprintcompiler/formatter.py b/blueprintcompiler/formatter.py index 45cb9dd..226e5e1 100644 --- a/blueprintcompiler/formatter.py +++ b/blueprintcompiler/formatter.py @@ -68,8 +68,7 @@ class Format: tokenized_str += item_as_string if item_as_string in NEWLINE_AFTER: - tokenized_str += "\n" - tokenized_str += indent_levels * " " + tokenized_str += "\n" + (indent_levels * " ") elif item_as_string in WHITESPACE_AFTER: tokenized_str += " "