fixing CR/LF/CRLF mess

Dwight Hughes dwighth at ipa.net
Mon Sep 6 20:23:58 UTC 1999


I just tried "remove line feeds" on Unix, Windows, and Mac formatted
files -- it handled all of these fine, returning Mac formatted files.
This is on 2.5 update 1419.

-- Dwight


Bolot Kerimbaev wrote:
> 
> For those of you who don't have BBEdit (say, on Linux), you can use
> Squeak to fix most of the problems.
> 
> Solution 1.
> 
> Use CrLfStream
> 
> Solution 2.
> 
> Open a FileList, select the file.
> If the file is too large, do get entire file.
> 
> Now, depending on where the file came from...
> 
> >From Windows, do remove line feeds.
> >From UNIX, select all (alt-a, command-a), then alt-u (command-u), then
> accept (alt-s, command-s).
> 
> alt-u/command-u converts LFs into CRs, that's why it doesn't really work
> for Windows files...
> 
> bolot





More information about the Squeak-dev mailing list