On 8/26/06, James Long <[EMAIL PROTECTED]> 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.
firstname.lastname@example.org mailing list
To unsubscribe, send any mail to "[EMAIL PROTECTED]"