diff options
author | Mark Harviston <mark.harviston@gmail.com> | 2013-01-31 16:30:23 -0800 |
---|---|---|
committer | Mark Harviston <mark.harviston@gmail.com> | 2013-01-31 16:30:23 -0800 |
commit | f97a1c1605a14bee3115070e836d7ad491c41656 (patch) | |
tree | 68e229624d2f53f6a29890ebff294a5ee2a79dfa | |
parent | 50e831500490d1f6cb01395f43c29dd577427b0b (diff) | |
download | pep8-f97a1c1605a14bee3115070e836d7ad491c41656.tar.gz |
Fixed issue #155
continuation lines are now calculated from the logical indent level
(1 tab = 8 spaces, as calculated by `expand_tab`)
not the physical number of whitespace characters
(which will only be the same if indents are only defined with spaces and not tabs)
-rwxr-xr-x | pep8.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -450,7 +450,7 @@ def continuation_line_indentation(logical_line, tokens, indent_level, verbose): print("... " + line.rstrip()) # record the initial indent. - rel_indent[row] = start[1] - indent_level + rel_indent[row] = expand_indent(line) - indent_level if depth: # a bracket expression in a continuation line. |