mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
Formatter.py: run black
This commit is contained in:
parent
af956e9aab
commit
01f67c3f47
1 changed files with 3 additions and 1 deletions
|
@ -55,7 +55,9 @@ class Format:
|
||||||
indent_levels += 1
|
indent_levels += 1
|
||||||
elif item_as_string in CLOSING_TOKENS:
|
elif item_as_string in CLOSING_TOKENS:
|
||||||
indent_levels -= 1
|
indent_levels -= 1
|
||||||
tokenized_str = tokenized_str.strip() + "\n" + (indent_levels * " ")
|
tokenized_str = (
|
||||||
|
tokenized_str.strip() + "\n" + (indent_levels * " ")
|
||||||
|
)
|
||||||
|
|
||||||
if item_as_string in WHITESPACE_BEFORE:
|
if item_as_string in WHITESPACE_BEFORE:
|
||||||
tokenized_str = tokenized_str.strip() + " "
|
tokenized_str = tokenized_str.strip() + " "
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue