mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-10 23:04:18 +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
|
(previous_text not in '{[(' and
|
||||||
text not in '}])')):
|
text not in '}])')):
|
||||||
text = ' ' + text
|
text = ' ' + text
|
||||||
elif previous_column != start_column:
|
elif previous_column != start_column:
|
||||||
text = line[previous_column:start_column] + text
|
text = line[previous_column:start_column] + text
|
||||||
logical.append(text)
|
logical.append(text)
|
||||||
length += len(text)
|
length += len(text)
|
||||||
mapping.append((length, end))
|
mapping.append((length, end))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue