| View previous topic :: View next topic |
| Author |
Message |
KDJ
Joined: 06 Mar 2010 Posts: 1067 Location: Poland
|
Posted: Sat Jul 28, 2012 12:22 pm Post subject: Newline format |
|
|
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. |
|
| Back to top |
|
 |
Instructor Site Admin
Joined: 06 Jul 2006 Posts: 4640
|
Posted: Sat Jul 28, 2012 2:05 pm Post subject: |
|
|
KDJ
| Code: | | cmd /c ipconfig>C:\ipconfig.txt | Open in MS Notepad.
| Quote: | | 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. |
|
| Back to top |
|
 |
KDJ
Joined: 06 Mar 2010 Posts: 1067 Location: Poland
|
Posted: Sat Jul 28, 2012 3:16 pm Post subject: |
|
|
| Instructor wrote: | | Quote: | | 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? |
|
| Back to top |
|
 |
Infocatcher
Joined: 06 Aug 2007 Posts: 1431
|
Posted: Sat Jul 28, 2012 4:40 pm Post subject: |
|
|
| Instructor wrote: | | Code: | | cmd /c ipconfig>C:\ipconfig.txt |
|
Windows XP: \r\r\n
Windows 7: \r\n
So looks like a fixed bug. |
|
| Back to top |
|
 |
|