Re: [Gambas-user] Question on preserving Windows EOL

2015-05-17 Thread Benoît Minisini
Le 17/05/2015 19:21, T Lee Davidson a écrit : On 05/17/2015 10:18 AM, Willy@develop wrote: Hi All, I've been struggling with something I would like to implement. A user asked me if it would be possible to preserve Windows EOL (CRLF) for files originating from Windows, but opened and

Re: [Gambas-user] Question on preserving Windows EOL

2015-05-17 Thread T Lee Davidson
On 05/17/2015 10:18 AM, Willy@develop wrote: Hi All, I've been struggling with something I would like to implement. A user asked me if it would be possible to preserve Windows EOL (CRLF) for files originating from Windows, but opened and modified in gbEdit (Gambas written texteditor).

[Gambas-user] Question on preserving Windows EOL

2015-05-17 Thread Willy@develop
Hi All, I've been struggling with something I would like to implement. A user asked me if it would be possible to preserve Windows EOL (CRLF) for files originating from Windows, but opened and modified in gbEdit (Gambas written texteditor). What happens now is that, if I add a few new lines to

Re: [Gambas-user] Question on preserving Windows EOL

2015-05-17 Thread Willy@develop
On zo, 2015-05-17 at 19:39 +0200, Benoît Minisini wrote: Any suggestions? Something quick and dirty like that? ' EolText = \n ' Unix EolText = \r\n ' Windows ' EolText = \r ' Mac Text = Replace(Text, \r\n, \n) Text = Replace(Text, \r, \n) if EolText \n Then Text =