empty line is added to files

Bug #106811 reported by Bram Daams
2
Affects Status Importance Assigned to Milestone
gedit (Ubuntu)
Fix Released
Low
Ubuntu Desktop Bugs

Bug Description

Binary package hint: gedit

file > new

in the new document, type a few lines:
line1
line2
line3

(last line of the document is line3)

file > save

save the file as /tmp/testfile

file > close

file > open

open /tmp/testfile

the document now has four lines!
last line is empty.
(the actual file still contains 3 lines, even after saving)

I don't know weather this is intended behavior. It just confuses me as for some scripts or when editing data files is't important that the last line is not empty.

gedit version 2.16,1

cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=6.10
DISTRIB_CODENAME=edgy
DISTRIB_DESCRIPTION="Ubuntu 6.10"

Revision history for this message
Cesare Tirabassi (norsetto) wrote :

In Feisty (gedit 2.18.1) the behaviour is correct. The file is saved and retrieved without any additional <CR>.

Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you for your bug. Not confirming using feisty, maybe it has been fixed with a new version

Changed in gedit:
assignee: nobody → desktop-bugs
importance: Undecided → Low
Changed in gedit:
status: Unconfirmed → Needs Info
Revision history for this message
Sebastien Bacher (seb128) wrote :

marking fixed, feel free to reopen if you still get the bug with Ubuntu 7.04

Changed in gedit:
status: Needs Info → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.