Thank you for the but report. :)  Here is a little information that will
hopefully help you understand what might be going on.

Text files on computers use a special character (or sequence of
characters) that get stored in the file each time you press enter in
your text editor.  Each one of these character sequences represents the
end of the current line (and thus, the start of the next line).

Linux (and other Unix based operating systems)  use the single character
known as LF.  LF means Line Feed.  So a file created in Linux that
contains three lines might look like this:

Line1 LF
Line2 LF
Line3 LF

Whereas the very same file created in a Windows operating system will
look different because Windows uses the following character sequence to
represent a new line: CR LF.  So in Windows the example file would look
like this:

Line1 CR LF
Line2 CR LF
Line3 CR LF

When you open the Linux file in Windows Notepad, the file looks like it
is one long line because CRLF does not appear in the file anywhere.
Notepad actually looks for the character sequence CR LF to know that it
has found the end of the line.

I'm not sure why you see TWO newlines in Gedit though. Gedit is usually
smart enough to figure out the right thing to do even if you mix
multiple types of newline representations.

As a workaround for this problem, you can use Wordpad in Windows.
Wordpad is smart enough to properly open text files created on a
Linux/Unix operating system. Or you could even install Gedit in Windows:
http://ftp.gnome.org/pub/gnome/binaries/win32/gedit/2.29/gedit-
setup-2.29.4-1.exe

So I'm not 100% sure I would call your situation a bug.  Although I am a
little concerned about the behavior you describe for Gedit.  Could you
please attach a file to this bug report that you've edited in Windows
that causes Gedit to display two newlines in a certain location even
though you only hit enter once?

-- 
Line break problem with .txt-files
https://bugs.launchpad.net/bugs/543304
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

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

Reply via email to