[WM] \r\n problem with mozilla
Ralph Pape
ralph.pape.web.de
Sat Jun 28 09:54:06 IST 2003
Hi all,
I'm using webmake 2.3 on a win2k box with activeperl 5.8.0.608.
In the out section of my wmk file I declared 'clean="all"'. Looking with
mozilla at the generated html source I noticed this:
-------------------------
<html>
<head>
<title>
Bla blup ...........
</title>
[...]
--------------------------
It seem that webmake insterts to much \n at the end of a line.
Searching aroung in the code I found in 'Main.pm', line 2531:
# convert EOLs to native format. Note that we don't have to
# worry about \r\n, \r, or others; Perl will convert incoming
# eols to \n while reading since we don't use "binmode".
my $eol = $self->{util}->text_eol();
$txt =~ s/\n/${eol}/gs
This seems to cause the desribed behaviour. Comment out the last line
solved my problem.
# $txt =~ s/\n/${eol}/gs
The code then looks like I expected it.
-------------------------
<html>
<head>
<title>
Bla blup ...........
</title>
[...]
--------------------------
Is this a bug or a feature?
BTW: IE5.0 show the code without to much \n, with and without the
lineend substitution.
Greetings Ralph
More information about the Webmake-talk
mailing list