[Cuis] Package question re: reformatting

Juan Vuletich juan at jvuletich.org
Mon Jun 4 20:45:50 CDT 2012


Phil (list) wrote:
> 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.
>
>   

Oh, that's easy. Just add 'withCuisLineEndings' at the end of MethodNode 
 >> decompileString. Will be in the updates soon.

Cheers,
Juan Vuletich

> Thanks,
> Phil
> _______________________________________________
> Cuis mailing list
> Cuis at jvuletich.org
> http://jvuletich.org/mailman/listinfo/cuis_jvuletich.org
>
>
> -----
> Se certifico que el correo no contiene virus.
> Comprobada por AVG - www.avg.es
> Version: 2012.0.1913 / Base de datos de virus: 2425/5033 - Fecha de la version: 30/05/2012
>
>
>   





More information about the Cuis mailing list