Thanks Sean
I needed
$Editor->SetEOLMode (2); or $Editor->SetEOLMode (1); depending upon final file destination
I still get the indent see below
one
two
three
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
$Editor->SetIndent (0);
But no joy
Thanks
Mike
Sean Healy wrote:
On Tue, 01 May 2007 04:39:09 -0600, mikemc <mike.j.mcmahon@btinternet.com>
wrote:
> 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
> chars
> 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.
EOL constant
SC_EOL_CRLF, SC_EOL_CR, SC_EOL_LF.
ConvertEOLs (eolMode)
Convert all line endings in the document to one mode.
GetEOLMode
Retrieve the current end of line mode - one of CRLF, CR, or LF.
SetEOLMode (eolMode)
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.
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/_______________________________________________
Perl-Win32-GUI-Users mailing list
Perl-Win32-GUI-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-usershttp://perl-win32-gui.sourceforge.net/