Unfortunately it won't be perfect First of all, in Windows you need to use \r\n. Second of all, how will I tell between a \n that needs to appear on the end of an echo statement and a \n that needs to signal that an actual carriage return needs to be inserted?
-Nuttzy
IN-LINE FIND, ADD multiline
Forum rules
DO NOT give out any FTP passwords to anyone! There is no reason to do so! If you need help badly enough, create a temporary FTP account that is restricted to only the files that you need help with and give the information for that. Giving out FTP information can be very dangerous!
DO NOT give out any FTP passwords to anyone! There is no reason to do so! If you need help badly enough, create a temporary FTP account that is restricted to only the files that you need help with and give the information for that. Giving out FTP information can be very dangerous!
- GPHemsley
- Registered User
- Posts: 1617
- Joined: Fri Apr 18, 2003 4:01 am
- Location: Long Beach, NY
- Contact:
Re: IN-LINE FIND, ADD multiline
Actually, just \n should work on Windows. It's just that windows puts the \r\n itself. For example, if you hit enter and have Windows convert this into a line break, it puts \r\n, but if you have it print \n for a line break, that will work.
Gordon P. Hemsley
The GP Factory
EasyMOD Support Rant
My MODs: Topic Type MOD | View Topic Title While Posting MOD
The GP Factory
EasyMOD Support Rant
My MODs: Topic Type MOD | View Topic Title While Posting MOD
-
- Registered User
- Posts: 81
- Joined: Mon May 26, 2003 5:27 pm
- Location: Wherever I am.
- Contact:
Re: IN-LINE FIND, ADD multiline
Actually, no.
Many times I download Unix text files (just \n) that should look like:
but with notepad, they come out as:
Many times I download Unix text files (just \n) that should look like:
Code: Select all
line1
line2
line3
Code: Select all
line1line2line3
hello
- GPHemsley
- Registered User
- Posts: 1617
- Joined: Fri Apr 18, 2003 4:01 am
- Location: Long Beach, NY
- Contact:
Re: IN-LINE FIND, ADD multiline
Well, I was just thinking.... You can have certain things that perform certain functions and stuff. I was just thinking /*-MOD MOD*/, but then I realized that that's for code inserted into the file, not for the MOD.... I was gonna suggest /*-MOD NL MOD-*/
Maybe something like [NL]? Or /*NL*/? I don't know... Just throwing things out there....
Also, we have to take into consideration those who don't use EasyMOD. They're not gonna notice that they need new lines for these code pieces.
Maybe something like [NL]? Or /*NL*/? I don't know... Just throwing things out there....
Also, we have to take into consideration those who don't use EasyMOD. They're not gonna notice that they need new lines for these code pieces.
Gordon P. Hemsley
The GP Factory
EasyMOD Support Rant
My MODs: Topic Type MOD | View Topic Title While Posting MOD
The GP Factory
EasyMOD Support Rant
My MODs: Topic Type MOD | View Topic Title While Posting MOD