I'm using Embperl-1.3b7 on Windows 98 with DjGpp & Vim and I'm having a
problem with newlines. After I use the following script:
#!D:/Programs/Perl/Bin/perl.exe -w
use strict;
use HTML::Embperl;
HTML::Embperl::Execute({
'inputfile' => 'page.htm',
'outputfile' => 'page2.htm'
});
with 'page.htm' containing:
PAGE 1
[+ 'Hello world!' +]
Last line.
and I load the 'page2.htm' into Vim, it has (^M) at the end of lines:
PAGE 1^M
Hello world!
Last line.^M
^M
Which means Vim recognized the file to be in UNIX format, because not each
line contained ^J/^M (CR/LF); the line "Hello world!" apparently contained
only the ^J (newline) character. However, when I change 'page.htm' to
contain text after the [+ ... +] command:
PAGE 1
[+ 'Hello world!' +] Text.
Last line.
, run the script, and load 'page2.htm' into Vim, it shows me:
PAGE 1
Hello world! Text.
Last line.
without any ^M's all right, so apparently Embperl did output ^J^M after the
line "Hello world! Text.".
I would like Embperl to always output ^J^M (CR/LF) when processing a file
which contains CR/LF. Is this possible?
Freddy Vulto
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]