Page 1 of 1

Newline format

Posted: Sat Jul 28, 2012 12:22 pm
by KDJ
Why AkelPad treats "\r\r\n" as a single symbol of new line?
Other editors (NP++, Notepad2, PSPad, RJTextEd, EditPad) interprets it as two new lines - "\r" and "\r\n".
In effect, the same file (containing only "\r\r\n") opened in AkelPad has 2 lines, and opened in another editor has 1 line.
In addition, AkelPad detects the newline format as Windows, other editors as Mac.

Posted: Sat Jul 28, 2012 2:05 pm
by Instructor
KDJ

Code: Select all

cmd /c ipconfig>C:\ipconfig.txt
Open in MS Notepad.
In effect, the same file (containing only "\r\r\n") opened in AkelPad has 2 lines, and opened in another editor has 1 line.
You probably meen 1 line in AkelPad and 2 lines in mentioned editors.

Posted: Sat Jul 28, 2012 3:16 pm
by KDJ
Instructor wrote:
In effect, the same file (containing only "\r\r\n") opened in AkelPad has 2 lines, and opened in another editor has 1 line.
You probably meen 1 line in AkelPad and 2 lines in mentioned editors.
Yes of course, I wanted to write:
"In effect, the same file (containing only "\r\r\n") opened in AkelPad has 1 line, and opened in another editor has 2 lines."
Probably because of the heat I made a mistake. The weather is tropical.

OK, Ipconfig command generates a new line in format "\r\r\n", but Dir command generates "\r\n".
Is this a bug in Windows? Whether it was intentional? For what purpose?

Posted: Sat Jul 28, 2012 4:40 pm
by Infocatcher
Instructor wrote:

Code: Select all

cmd /c ipconfig>C:\ipconfig.txt
Windows XP: \r\r\n
Windows 7: \r\n
:)

So looks like a fixed bug.