AkelPad Forum Index AkelPad
Support forum
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Newline format

 
Post new topic   Reply to topic    AkelPad Forum Index -> Discussion (English)
View previous topic :: View next topic  
Author Message
KDJ



Joined: 06 Mar 2010
Posts: 1324
Location: Poland

PostPosted: Sat Jul 28, 2012 12:22 pm    Post subject: Newline format Reply with quote

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
View user's profile Send private message
Instructor
Site Admin


Joined: 06 Jul 2006
Posts: 5293

PostPosted: Sat Jul 28, 2012 2:05 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
KDJ



Joined: 06 Mar 2010
Posts: 1324
Location: Poland

PostPosted: Sat Jul 28, 2012 3:16 pm    Post subject: Reply with quote

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
View user's profile Send private message
Infocatcher



Joined: 06 Aug 2007
Posts: 1594

PostPosted: Sat Jul 28, 2012 4:40 pm    Post subject: Reply with quote

Instructor wrote:
Code:
cmd /c ipconfig>C:\ipconfig.txt

Windows XP: \r\r\n
Windows 7: \r\n
Smile

So looks like a fixed bug.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AkelPad Forum Index -> Discussion (English) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


SourceForge.net Logo Powered by phpBB © 2001, 2005 phpBB Group