sumikchakka / jallib

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

jallib.py reindent bug #189

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
jallib.py reindent <file.jal> fails when the file ends on the last line of code 
instead of ending on a blank line.

Original issue reported on code.google.com by mke...@gmail.com on 25 Nov 2012 at 6:06

GoogleCodeExporter commented 9 years ago
So this appears to be a simple fix.  It is currently neglecting the last line 
of the file it checks, because it is assumed that the last line is a linefeed 
and not a line of code.  When writing the updated content back to the file it 
adds an extra linefeed...Is there a reason for this?  Is something else 
expecting a linefeed at the end of each file?

Original comment by mke...@gmail.com on 27 Nov 2012 at 5:03

GoogleCodeExporter commented 9 years ago
This is now fixed.  Files ending on the last line of code now pass 
reindentation successfully.

Original comment by mke...@gmail.com on 27 Nov 2012 at 6:13

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r3131.

Original comment by mke...@gmail.com on 27 Nov 2012 at 6:13

GoogleCodeExporter commented 9 years ago
Hi Mike, thanks for the fix. By the time I wrote this, I can't think of any 
reason why it adds an extra line feed, so this is just ok !
Seb

Original comment by sebastie...@gmail.com on 28 Nov 2012 at 6:50