Skip to content

Commit

Permalink
fixup! Fix indentation handling with tabs (Issue: pylint-dev#1148)
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas Freimuth committed Mar 17, 2018
1 parent 6cfd504 commit 783b5c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pylint/checkers/format.py
Expand Up @@ -304,8 +304,8 @@ def line_indent(self, idx):
return _get_indent_string(self.line(idx))

def token_indent(self, idx):
return (self.line_indent(idx) +
' ' * (self.start_col(idx) - _get_indent_length(self.line(idx))))
line_indent = self.line_indent(idx)
return (line_indent + ' ' * (self.start_col(idx) - len(line_indent)))


class ContinuedLineState(object):
Expand Down

0 comments on commit 783b5c6

Please sign in to comment.