[Cuis] Package question re: reformatting

Phil (list) pbpublist at gmail.com
Mon Jun 4 13:20:01 CDT 2012


David,

On Jun 4, 2012, at 11:16 AM, David Graham wrote:

> Hi Phil,
> After digging around, I found the following method fixes line endings for the entire system:
> 
> (SystemDictionary new) fixSourceCodeLineEndings
> 
> Not sure if this is the official way, but it worked for fixing my ported packages.  I was thinking of adding a method to install/fileIn, since this is a common issue while porting squeak/pharo code.
> 

I'll give that a shot.  It would definitely be nice if this were an option (not sure you'd always want it done since there might be legitimate cases when you actually want cr's in the loaded file) when loading code since it is such a common issue.  Assuming that this behaves the same as the pretty print functionality one thing it doesn't do is eliminate the cr's from comments which it would be nice if it did.

Thanks,
Phil



More information about the Cuis mailing list