wistful / SublimeAutoPEP8

Automatically formats Python code to conform to the PEP 8 style guide using autopep8 and pep8 modules
144 stars 23 forks source link

Strange behavior #27

Closed supergra closed 10 years ago

supergra commented 10 years ago
if True:
   a = 1
b = (1, 2)

Autopepping this properly indents the a = 1 line to four spaces

if True:
   a = 1
b = (1,2)

Autopepping this does nothing! See the difference? It's the space after the comma in the third line! Perhaps this is a bug with the autopep library, but I don't know where to report that.

If I select an entire function, and there's one of these no-space-after-comma situations, it won't change anything!

wistful commented 10 years ago

Fixed in version 1.1.1.