This is quite annoying, and perhaps there is something I can do to lessen the effects of this annoyance, or hopefully, eliminate it.
When writing some ruby scripts in TextEdit, I use a combination of newly written code and cut-and-pasted code from prior ruby scripts. I save the script in plain text and then email the script to my windows machine. In windows, I save the attachment, open it in Notepad, and it all looks quite fine. If I make a change while under Notepad and save it (it has a ".rb" extention), and then reopen in Notepad, all the CRLFs are missing from any lines that were pasted in - only! The cut-and-pasted text I did while in TextEdit is all mashed together. This usually causes the [script to] have syntax errors and I have to manually re-align all the mashed-up lines back into their respective lines.
I've tried emailing the script from Mac as "windows friendly" and also tried saving under Notepad as both ANSI and UTF-8 - makes no difference.
Any ideas?
MacPro 10.4.8.
Thanks, Todd
When writing some ruby scripts in TextEdit, I use a combination of newly written code and cut-and-pasted code from prior ruby scripts. I save the script in plain text and then email the script to my windows machine. In windows, I save the attachment, open it in Notepad, and it all looks quite fine. If I make a change while under Notepad and save it (it has a ".rb" extention), and then reopen in Notepad, all the CRLFs are missing from any lines that were pasted in - only! The cut-and-pasted text I did while in TextEdit is all mashed together. This usually causes the [script to] have syntax errors and I have to manually re-align all the mashed-up lines back into their respective lines.
I've tried emailing the script from Mac as "windows friendly" and also tried saving under Notepad as both ANSI and UTF-8 - makes no difference.
Any ideas?
MacPro 10.4.8.
Thanks, Todd