Code beautifiers, anyone?
Matti J. Karki
mjk at iki.fi
Sat Aug 26 10:38:51 UTC 2006
On 8/26/06, James Long <list at museum.rain.com> wrote:
> >
> > > inbuffer = re.sub('\n +', '\n', inbuffer) # Strip trailing whitespace
> >
> > This will strip spaces at the _beginning_ of line (leading spaces).
>
> Except, possibly, lines that begin at the first byte of the buffer,
> such as the first line of the file, and any other lines that happen to
> land across the buffer boundary just so.
>
Nice catch. I hadn't thought about that.
-Matti
More information about the freebsd-questions
mailing list