--- trunk/web/browse.cgi 2005/11/15 14:31:03 61 +++ trunk/web/browse.cgi 2005/11/15 16:56:40 63 @@ -94,6 +94,7 @@ return $iconv_loc->convert(chr(hex($t))); } $tmpl =~ s/%u([a-fA-F0-9]{4})/_conv_js($1)/gex; + $tmpl =~ s/[\n\r]+$//s; my $tmpl_file = $out->{'include_path'} . '/' . $template; write_file($tmpl_file . '.new', $tmpl) || die "can't save $tmpl_file: $!";