I've found the unexpand command, which seems to do the trick. However, it outputs to standard output, and I haven't worked out yet how to capture that output to a file...
Ben Ben wrote: > Hi, > > I have a python script on a unix system that runs fine. I have a python > script on a windows system that runs fine. Both use tabs to indent > sections of the code. I now want to run them on the same system, > actually in the same script by combining bits and pieces. But whatever > I try my windows tabs get converted to spaces when I transfer it to the > unix system and the interpreter complains that the indentation style is > not consistent throughout the file. Short of going through 350 lines of > code and manually replacing spaces with tabs what an I do? I'm thinking > there surely must be a simple solution I have missed here! > > Cheers, > > Ben -- http://mail.python.org/mailman/listinfo/python-list