Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 422779

Summary: [editor] editor shows extra blank line at the end of files
Product: [ECD] Orion Reporter: Anthony Hunter <ahunter.eclipse>
Component: EditorAssignee: Project Inbox <orion.editor-inbox>
Status: RESOLVED INVALID QA Contact:
Severity: normal    
Priority: P3 CC: Silenio_Quarti
Version: 5.0   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Anthony Hunter CLA 2013-11-28 11:01:10 EST
Open an editor on a file with 8 lines. The editor shows a blank line 9.

When you enter text on line 9, Orion does not save a line ending (\n) on this line.
Comment 1 Silenio Quarti CLA 2013-11-28 17:08:37 EST
If the last character on a file is a line delimiter, the editor is supposed to have a blank line at the end. There are editors that do not show that blank line (i.e vi and maybe emacs), but most editors (notepad, wordpad, Mac TextEdit, gedit, eclipse) have the same behavior as the orion editor.
Comment 2 Anthony Hunter CLA 2013-11-28 18:00:56 EST
Agreed this appears to be a Linux thing when editing files using VI and getting 

When an input file ends in a non-newline character, its last line is called an "incomplete line" because its last character is not a newline.  All other lines are called "full lines" and end in a newline character.