script for trailing whitespace cleanup

Is the script for trailing whitespace cleanup that is used for numpy, scipy available somewhere? Thanks, Josef

On Thu, Sep 23, 2010 at 10:41 PM, <josef.pktd@gmail.com> wrote:
Is the script for trailing whitespace cleanup that is used for numpy, scipy available somewhere?
I've attached the perl script I use. You can use it wildcards for the file names in the usual way. Hmmm, I wonder how it treats the cr-lf endings that sometimes turn up on windows. Chuck

On Fri, Sep 24, 2010 at 9:02 AM, Charles R Harris <charlesr.harris@gmail.com> wrote:
On Thu, Sep 23, 2010 at 10:41 PM, <josef.pktd@gmail.com> wrote:
Is the script for trailing whitespace cleanup that is used for numpy, scipy available somewhere?
I've attached the perl script I use. You can use it wildcards for the file names in the usual way. Hmmm, I wonder how it treats the cr-lf endings that sometimes turn up on windows.
Thank you, I will ask Skipper to run it on Linux, then I don't have to worry about line-endings (nor do I have to figure out how to use perl on my machine, on second thought, maybe I should). Josef
Chuck
_______________________________________________ SciPy-Dev mailing list SciPy-Dev@scipy.org http://mail.scipy.org/mailman/listinfo/scipy-dev

On Fri, Sep 24, 2010 at 8:45 AM, <josef.pktd@gmail.com> wrote:
On Fri, Sep 24, 2010 at 9:02 AM, Charles R Harris <charlesr.harris@gmail.com> wrote:
On Thu, Sep 23, 2010 at 10:41 PM, <josef.pktd@gmail.com> wrote:
Is the script for trailing whitespace cleanup that is used for numpy, scipy available somewhere?
I've attached the perl script I use. You can use it wildcards for the
names in the usual way. Hmmm, I wonder how it treats the cr-lf endings
file that
sometimes turn up on windows.
Thank you, I will ask Skipper to run it on Linux, then I don't have to worry about line-endings (nor do I have to figure out how to use perl on my machine, on second thought, maybe I should).
Josef
On just about any linux machine I have used, I have found the program 'dos2unix' to be very helpful. Note, it converts line endings for more than just dos->unix. Ben Root
participants (3)
-
Benjamin Root
-
Charles R Harris
-
josef.pktd@gmail.com