mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
Revert "formatter.py: Remove another_newline()
"
This reverts commit dbcc094fc1
.
This commit is contained in:
parent
dbcc094fc1
commit
49937b5dd5
1 changed files with 7 additions and 9 deletions
|
@ -127,16 +127,14 @@ class Format:
|
||||||
prev_line_type in [LineType.CHILD_TYPE, LineType.COMMENT]
|
prev_line_type in [LineType.CHILD_TYPE, LineType.COMMENT]
|
||||||
or prev_line_type == LineType.BLOCK_OPEN
|
or prev_line_type == LineType.BLOCK_OPEN
|
||||||
):
|
):
|
||||||
# end_str = (
|
end_str = (
|
||||||
# end_str.strip()
|
end_str.strip()
|
||||||
# + "\n\n"
|
+ "\n\n"
|
||||||
# + (indent_item * (indent_levels - 1))
|
+ (indent_item * (indent_levels - 1))
|
||||||
# )
|
|
||||||
commit_current_line(LineType.BLOCK_OPEN, True, 2)
|
|
||||||
else:
|
|
||||||
commit_current_line(
|
|
||||||
LineType.BLOCK_OPEN,
|
|
||||||
)
|
)
|
||||||
|
commit_current_line(
|
||||||
|
LineType.BLOCK_OPEN,
|
||||||
|
)
|
||||||
|
|
||||||
elif str_item == "]" and is_child_type:
|
elif str_item == "]" and is_child_type:
|
||||||
commit_current_line(
|
commit_current_line(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue