[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <45F63790.2050407@zytor.com>
Date: Mon, 12 Mar 2007 22:33:04 -0700
From: "H. Peter Anvin" <hpa@...or.com>
To: Andrew Morton <akpm@...ux-foundation.org>
CC: linux-kernel@...r.kernel.org
Subject: Re: [PATCH] cleanfile: a script to clean up stealth whitespace
Andrew Morton wrote:
>> On Mon, 12 Mar 2007 12:16:30 -0700 "H. Peter Anvin" <hpa@...or.com> 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 converted to tabs);
>> - Empty lines at end of file.
>
> 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 to know if blank lines
are inserted at the end of a file as opposed in the middle of the file.
It can, of course, be done if the unpatched material is available,
probably by applying the patch and seeing what happens.
Let me know if you still want it; I'll whip it up.
-hpa
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists