Re: [PATCH] cleanfile: a script to clean up stealth whitespace

2007-03-13 Thread Arnaud Giersch
Lundi 12 mars 2007, vers 20:16:30 (+0100), H. Peter Anvin a écrit: > This script cleans up various classes of stealth whitespace. In > particular, it cleans up: > > - Whitespace (spaces or tabs)before newline; > - DOS line endings (CR before LF); > - Space before tab (spaces are deleted or

Re: [PATCH] cleanfile: a script to clean up stealth whitespace

2007-03-13 Thread Arnaud Giersch
Lundi 12 mars 2007, vers 20:16:30 (+0100), H. Peter Anvin a écrit: This script cleans up various classes of stealth whitespace. In particular, it cleans up: - Whitespace (spaces or tabs)before newline; - DOS line endings (CR before LF); - Space before tab (spaces are deleted or converted

Re: [PATCH] cleanfile: a script to clean up stealth whitespace

2007-03-12 Thread H. Peter Anvin
H. Peter Anvin wrote: Fair enough. It'd be nice to have a clean-up-a-patch version of this. So it does all these things, except it only changes lines which start with ^+. It can do everything except kill empty lines at the end of the file; a patch simply doesn't contain enough information

Re: [PATCH] cleanfile: a script to clean up stealth whitespace

2007-03-12 Thread H. Peter Anvin
Andrew Morton wrote: On Mon, 12 Mar 2007 12:16:30 -0700 "H. Peter Anvin" <[EMAIL PROTECTED]> wrote: This script cleans up various classes of stealth whitespace. In particular, it cleans up: - Whitespace (spaces or tabs)before newline; - DOS line endings (CR before LF); - Space before tab

Re: [PATCH] cleanfile: a script to clean up stealth whitespace

2007-03-12 Thread Andrew Morton
> On Mon, 12 Mar 2007 12:16:30 -0700 "H. Peter Anvin" <[EMAIL PROTECTED]> wrote: > This script cleans up various classes of stealth whitespace. In > particular, it cleans up: > > - Whitespace (spaces or tabs)before newline; > - DOS line endings (CR before LF); > - Space before tab (spaces are

[PATCH] cleanfile: a script to clean up stealth whitespace

2007-03-12 Thread H. Peter Anvin
This script cleans up various classes of stealth whitespace. In particular, it cleans up: - Whitespace (spaces or tabs)before newline; - DOS line endings (CR before LF); - Space before tab (spaces are deleted or converted to tabs); - Empty lines at end of file. Signed-off-by: H. Peter Anvin

[PATCH] cleanfile: a script to clean up stealth whitespace

2007-03-12 Thread H. Peter Anvin
This script cleans up various classes of stealth whitespace. In particular, it cleans up: - Whitespace (spaces or tabs)before newline; - DOS line endings (CR before LF); - Space before tab (spaces are deleted or converted to tabs); - Empty lines at end of file. Signed-off-by: H. Peter Anvin

Re: [PATCH] cleanfile: a script to clean up stealth whitespace

2007-03-12 Thread Andrew Morton
On Mon, 12 Mar 2007 12:16:30 -0700 H. Peter Anvin [EMAIL PROTECTED] wrote: This script cleans up various classes of stealth whitespace. In particular, it cleans up: - Whitespace (spaces or tabs)before newline; - DOS line endings (CR before LF); - Space before tab (spaces are deleted or

Re: [PATCH] cleanfile: a script to clean up stealth whitespace

2007-03-12 Thread H. Peter Anvin
Andrew Morton wrote: On Mon, 12 Mar 2007 12:16:30 -0700 H. Peter Anvin [EMAIL PROTECTED] wrote: This script cleans up various classes of stealth whitespace. In particular, it cleans up: - Whitespace (spaces or tabs)before newline; - DOS line endings (CR before LF); - Space before tab (spaces

Re: [PATCH] cleanfile: a script to clean up stealth whitespace

2007-03-12 Thread H. Peter Anvin
H. Peter Anvin wrote: Fair enough. It'd be nice to have a clean-up-a-patch version of this. So it does all these things, except it only changes lines which start with ^+. It can do everything except kill empty lines at the end of the file; a patch simply doesn't contain enough information