Skip to content

Commit 7b399bb

Browse files
committed
Fix the same issue in the python.
1 parent f7bc17b commit 7b399bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/selfie-lib/selfie_lib/EscapeLeadingWhitespace.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def appropriate_for(cls, file_content: str) -> "EscapeLeadingWhitespace":
3434

3535
for line in file_content.splitlines():
3636
whitespace = "".join(c for c in line if c.isspace())
37-
if not whitespace:
37+
if whitespace == "" or whitespace == " ":
3838
continue
3939
elif all(c == " " for c in whitespace):
4040
whitespace = " "

0 commit comments

Comments
 (0)