Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion redbaron/base_nodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -1789,7 +1789,7 @@ def modify_last_indentation(node, indentation):
expected_list.append(i[0])
log("-- current result: %s", ["".join(map(lambda x: x.dumps(), expected_list))])

if previous and previous.type == "endl" and i[0].type != "endl" and previous.indentation != indentation:
if previous and previous.type == "endl" and i[0].type != "endl" and previous.indent != indentation:
log("Previous is endl and current isn't endl and identation isn't correct, fix it")
previous.indent = indentation

Expand Down