W191 false positive for triple quoted strings #109

Closed
jcollado opened this Issue Jul 24, 2012 · 1 comment

2 participants

@jcollado

I'm working on some source code that uses a triple quoted string as a template to generate a file that uses a format that requires tabs (not exactly this case, but you can think of a makefile).

What I get when a run pep8 against that file is: W191 indentation contains tabs. However this happens only for the lines between the triple quotes, that is, isn't python code but free text in a string object.

What I'd expect is that pep8 ignores the text between the triple quotes and allows me to write tabs at the beginning of a line if I need to.

@florentx

Duplicates issue #45

@florentx florentx closed this Jul 25, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment