mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
Formatter: optimize 1 operation
This commit is contained in:
parent
b692a35398
commit
97f07b3ca8
1 changed files with 1 additions and 2 deletions
|
@ -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 += " "
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue