mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
Formatter: Remove whitespace-line remover
Removing lines only containing whitespace is superflous, such lines never get added to `tokenized_str`
This commit is contained in:
parent
babcc42ea2
commit
23d1f77b25
1 changed files with 0 additions and 4 deletions
|
@ -111,10 +111,6 @@ class Format:
|
||||||
# else:
|
# else:
|
||||||
# current_line = current_line.strip() + " "
|
# current_line = current_line.strip() + " "
|
||||||
|
|
||||||
tokenized_str = "\n".join(
|
|
||||||
["" 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
|
||||||
|
|
||||||
return tokenized_str
|
return tokenized_str
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue