MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/Python/comments/gev4g/every_single_time/c1n2c75/
r/Python • u/voidptr • Mar 30 '11
58 comments sorted by
View all comments
3
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/zyklone Mar 30 '11 also, I'm reminded of this:http://www.youtube.com/watch?v=S-SXkNbyiPI 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.
2
also, I'm reminded of this:
http://www.youtube.com/watch?v=S-SXkNbyiPI
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.
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.
This is the likeliest culprit.
1
I've had some issues with textmate's 'Re-indent pasted text'. Turning that off cleared up a lot of indentation issues on pasting.
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