List Info

Thread: empty line is added to files




empty line is added to files
country flaguser name
United Kingdom
2007-04-15 11:51:24
Public bug reported:

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"

** Affects: gedit (Ubuntu)
     Importance: Undecided
         Status: Unconfirmed

-- 
empty line is added to files
https://bugs.l
aunchpad.net/bugs/106811
You received this bug notification because you are a member
of Ubuntu
Desktop Bugs, which is a bug contact for gedit in ubuntu.

-- 
desktop-bugs mailing list
desktop-bugslists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


Re: empty line is added to files
country flaguser name
United Kingdom
2007-04-15 12:10:13
In Feisty (gedit 2.18.1) the behaviour is correct. The file
is saved and
retrieved without any additional <CR>.

-- 
empty line is added to files
https://bugs.l
aunchpad.net/bugs/106811
You received this bug notification because you are a member
of Ubuntu
Desktop Bugs, which is a bug contact for gedit in ubuntu.

-- 
desktop-bugs mailing list
desktop-bugslists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


Re: empty line is added to files
country flaguser name
United Kingdom
2007-04-15 15:08:08
Thank you for your bug. Not confirming using feisty, maybe
it has been
fixed with a new version

** Changed in: gedit (Ubuntu)
   Importance: Undecided => Low
     Assignee: (unassigned) => Ubuntu Desktop Bugs

-- 
empty line is added to files
https://bugs.l
aunchpad.net/bugs/106811
You received this bug notification because you are a member
of Ubuntu
Desktop Bugs, which is a bug assignee.

-- 
desktop-bugs mailing list
desktop-bugslists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


Re: empty line is added to files
country flaguser name
United Kingdom
2007-04-18 07:08:17
** Changed in: gedit (Ubuntu)
       Status: Unconfirmed => Needs Info

-- 
empty line is added to files
https://bugs.l
aunchpad.net/bugs/106811
You received this bug notification because you are a member
of Ubuntu
Desktop Bugs, which is a bug assignee.

-- 
desktop-bugs mailing list
desktop-bugslists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )