[vwnc] Workspace and line end character?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[vwnc] Workspace and line end character?

Steffen Märcker
Hi,

I've noticed that the Workspace encodes a line end with "cr lf" on  
Windows. Reopening the image on Mac OS lets the Workspace shows this as  
two seperate lines. Is there a way to get the Workspace behaviour  
consistent over the different platforms?

Thanks! ... and a Happy New Year!
Steffen
_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: [vwnc] Workspace and line end character?

kobetic

"Steffen Märcker"<[hidden email]> wrote:
> I've noticed that the Workspace encodes a line end with "cr lf" on  
> Windows. Reopening the image on Mac OS lets the Workspace shows this as  
> two seperate lines. Is there a way to get the Workspace behaviour  
> consistent over the different platforms?

There doesn't seem to be an easy way to get that. You could change WorkspacePage>>readText, to replace the:

        self filenameWithEncoding contentsOfEntireFile


with something like

         | stream |
        stream := self filenameWithEncoding readStream.
        [ stream  lineEndAuto; contents ] ensure: [ stream close ]

HTH,

Martin

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc