summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Harviston <mark.harviston@gmail.com>2013-01-31 16:30:23 -0800
committerMark Harviston <mark.harviston@gmail.com>2013-01-31 16:30:23 -0800
commitf97a1c1605a14bee3115070e836d7ad491c41656 (patch)
tree68e229624d2f53f6a29890ebff294a5ee2a79dfa
parent50e831500490d1f6cb01395f43c29dd577427b0b (diff)
downloadpep8-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-xpep8.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pep8.py b/pep8.py
index 139c118..c21beee 100755
--- a/pep8.py
+++ b/pep8.py
@@ -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.