thecocce / pyscripter

Automatically exported from code.google.com/p/pyscripter
0 stars 0 forks source link

Blank line at end of file stripped #432

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. open any python source file that has a blank line at the end
2. the blank line will be gone
3. make an edit somewhere in the file and save it

What is the expected output? What do you see instead?
I expect that all blank lines stay intact. Collapsing multiple blank lines at 
the end of the file down to one when trim trailing whitespace is enabled would 
be acceptable as well.

What version of the product are you using? On what operating system?

2.3.1.0

Please provide any additional information below.

My main objection to trimming the blank line at the bottom of the file is that 
it makes the file non-PEP8 compliant.  It would really be nice if there were an 
option that when enabled would guarantee that there is 1 and only 1 blank line 
at the end of the file when saving it, so that all files would be PEP8 
compliant.  There are, of course, other PEP8 things PyScriptor could do that 
would also be nice.

Original issue reported on code.google.com by Tony.And...@gmail.com on 21 Oct 2010 at 9:46

GoogleCodeExporter commented 9 years ago
Fixed in version control.

Original comment by pyscripter on 22 Oct 2010 at 9:02