mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
Formatter: Fix newlines missing sometimes
This commit is contained in:
parent
e165ea5594
commit
babcc42ea2
1 changed files with 3 additions and 3 deletions
|
@ -112,7 +112,7 @@ class Format:
|
||||||
# current_line = current_line.strip() + " "
|
# current_line = current_line.strip() + " "
|
||||||
|
|
||||||
tokenized_str = "\n".join(
|
tokenized_str = "\n".join(
|
||||||
[s.strip() if s.strip() == s else s for s in tokenized_str.splitlines()]
|
["" if s.strip() == "" else s for s in tokenized_str.splitlines()]
|
||||||
)
|
)
|
||||||
|
|
||||||
print(tokenized_str) # TODO: Remove this when the MR is ready to be merged
|
print(tokenized_str) # TODO: Remove this when the MR is ready to be merged
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue