On Apr 15, 2:48 pm, "Nathan O'Treally" <not.rea...@online.de> wrote: > I'm not happy with "brute-force" converting *any* tab to space(s), and > it would be better to have a tool that (conditionally) does this > rather than supplying patches to lots of files converted by Emacs. The > same tool could be used just to check for "illegal" tabs. As I > understand this, these are *tabs in leading whitespace*.
Well, I think it's more complicated than that, or at least it used to be: when we first started using Sphinx to produce docstrings in the notebook, if there was a tab *anywhere* in the file, then docstrings for that file would not be processed correctly by Sphinx. This is the main reason that I personally wanted to get rid of all tabs in .py and .pyx files. I haven't tested lately to see if that's still an issue. That is, it's not just an esthetic issue or a style issue: there is (or was?) a very good reason to eliminate all tabs, not just in leading whitespace. > Trailing whitespace could be removed. (Currently trailing tabs are > converted to many trailing spaces.) > > I've also come across files that do not end with newline... I certainly don't object to dealing with these, but they don't have the same sense of importance to me. (Or maybe they're important but I don't know why?) -- John -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org To unsubscribe, reply using "remove me" as the subject.