I too have been changing a large number of files, in my case close to 1100, using a text factory with about 90 'replace all' expressions. I used 'Change Line Endings' to Mac format as the first text factory action, and this seemed to work well.

I am curious about how the line endings are encoded in text factories. When I copy and paste some text from a unix formatted file into a text factory, it seems to, at least in most cases, paste the text exactly as it appears, without the line endings being shown. If I then close the text factory options dialogue and reopen, the line endings are converted to \r. This is somewhat of a pain, I would rather have the encoded \r's in the text factory dialogue on initial paste.

It appears that \r is used as the line ending value inside the text factory even for unix files. When I examine the unix file via shell command 'od -c', I can see the line endings are encoded as \n. It appears that BBEdit text factory is using \r for line endings regardless of whether Mac or unix format is specified. In my text factory, I added some more \r's and again, using 'od -c', confirmed that the line endings in the file were \n's, not \r's.

I can see where this might make it easier for those long used to macs, and using \r's works, but as someone who didn't use a mac till OS X it seems counterintuitive to call a \n a \r.

        -Mike


Michael Wiik
Messagenet Communications Research
Washington, DC Area Web Development
[EMAIL PROTECTED]




--
------------------------------------------------------------------
Have a feature request? Not sure the software's working correctly?
If so, please send mail to <[EMAIL PROTECTED]>, not to the list.
List FAQ: <http://www.barebones.com/support/lists/bbedit_talk.shtml>
List archives: <http://www.listsearch.com/BBEditTalk.lasso>
To unsubscribe, send mail to:  <[EMAIL PROTECTED]>

Reply via email to