We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f45d302 commit 9283cceCopy full SHA for 9283cce
CHANGES.txt
@@ -19,6 +19,8 @@ Bug fixes:
19
20
* Fix E501 not detected in comments with Python 2.5.
21
22
+* Fix caret position with ``--show-source`` when line contains tabs.
23
+
24
25
1.5.1 (2014-03-27)
26
------------------
pep8.py
@@ -1600,7 +1600,7 @@ def get_file_results(self):
1600
else:
1601
line = self.lines[line_number - 1]
1602
print(line.rstrip())
1603
- print(' ' * offset + '^')
+ print(re.sub(r'\S', ' ', line[:offset]) + '^')
1604
if self._show_pep8 and doc:
1605
print(' ' + doc.strip())
1606
return self.file_errors
0 commit comments