It looks like a while back, the decision was made to convert tabs to spaces in code text (reference). However, today I encountered a problem in a white-space significant language where the user had mixed tabs and spaces inadvertently.
Pasting the user's snippet into my editor, everything worked just fine because the tabs had been converted to spaces. The problem was easy enough to track down, but that's not the issue. To me, it doesn't seem right that SO automatically changes the code that was input. Does anyone else have thoughts on this issue?
tabs-vs-spaces
debate. (I didn't even realize one existed until I did a quick search to see if this question had been asked before). That said, in some languages, it's a syntax issue, not just a cosmetic issue. And so I don't think that SO should render tabs as 4 spaces (It should render them as tabs). Let the users of SO leave comments as to why tabs in the source code are a bad idea.