r/Python • • Mar 30 '11

Every. Single. Time.

Post image
0 Upvotes

58 comments sorted by

View all comments

3

u/zyklone Mar 30 '11

this isn't related to trailing whitespace. Indentation is not trailing...

what editor are you using? Some can cause problems sometimes with auto-indent messing things up, or using hard tabs instead of spaces

2

u/voidptr Mar 30 '11

The worst offender is TextWrangler on Mac. The setting is buried somewhere, but you can turn it off.

Vim doesn't do this, which is delightful.

1

u/zyklone Mar 30 '11

I've had some issues with textmate's 'Re-indent pasted text'. Turning that off cleared up a lot of indentation issues on pasting.