mirror of
https://github.com/PyCQA/flake8.git
synced 2026-03-30 10:46:54 +00:00
Fix indentation causing incorrect logical lines
This commit is contained in:
parent
daf5c4d80d
commit
447a6d4fcc
1 changed files with 2 additions and 2 deletions
|
|
@ -163,8 +163,8 @@ class FileProcessor(object):
|
|||
(previous_text not in '{[(' and
|
||||
text not in '}])')):
|
||||
text = ' ' + text
|
||||
elif previous_column != start_column:
|
||||
text = line[previous_column:start_column] + text
|
||||
elif previous_column != start_column:
|
||||
text = line[previous_column:start_column] + text
|
||||
logical.append(text)
|
||||
length += len(text)
|
||||
mapping.append((length, end))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue