WARNING: This server is unstable and will be retired in the next days.
If you want to keep this forum available, please request immediately a migration
on the Nabble Support forum.
Forums that don't receive any migration request will be deleted forever.
$Editor->SetEOLMode (2); or $Editor->SetEOLMode (1); depending upon final file destination
I still get the indent see below
If you use editor.pl from the example files you get the same result, my code is based on this one anyway.
I have tried
But no joy
Sean Healy wrote:
On Tue, 01 May 2007 04:39:09 -0600, mikemc <firstname.lastname@example.org>
> I am struggling to get to grips with the EOL command.
> As standard I seem to output a file which when i read back in i see what
> appears to be double line spacing. If i open the file in vi i see ^M
> at the end of each line.
> How do i get rid of this to give me a regular file?
You are getting a regular file; it's just that vi reads in Unix format
(EOL = LF). So you need to set your EOL mode.
SC_EOL_CRLF, SC_EOL_CR, SC_EOL_LF.
Convert all line endings in the document to one mode.
Retrieve the current end of line mode - one of CRLF, CR, or LF.
Set the current end of line mode.
This might also solve your other problem; if not send a small amount of
code that reproduces the problem.