Re: the war on trailing whitespace
- From
- Adrien Beau <adrienbeau@gmail.com>
- Date
- Feb 27, 2006, 16:22 UTC
- Message-ID
- <94fc236b0602270822v1922b15dw9f7c09351210e08f@mail.gmail.com>
- In-Reply-To
- <4403086F.5040704@op5.se>
On 2/27/06, Andreas Ericsson <ae@op5.se> wrote:
> > So in essence, a multi-line statement is closed when a completely empty > line is found, which means that making git internals recognize and strip > such lines will result in Python code never being manageable by git.
Incorrect. This is only the case in the *interactive* interpreter in the standard implementation. For source code in general, quoting the Python Reference Manual:
"A logical line that contains only spaces, tabs, formfeeds and possibly a comment, is ignored (i.e., no NEWLINE token is generated)."
So such lines, whether completely empty or only apparently so (i.e. dirty), are ignored, and can be safely cleaned-up.
Adrien