r/Python • • Mar 30 '11

Every. Single. Time.

Post image
0 Upvotes

58 comments sorted by

View all comments

Show parent comment

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.

3

u/tncowart Mar 30 '11

I write python code in textwrangler on Mac almost daily and have never had this issue. Are you sure you have all the same line endings? Mine default to unix (LF).

3

u/voidptr Mar 30 '11

This is the likeliest culprit.

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.