correct handling of non-unix line termination
[freeside.git] / httemplate / misc / cust_main_note-import.cgi
index 690ca78..b93c5c1 100644 (file)
 %    my $line;
 %    my $row = 0;
 %    while ( defined($line=<$fh>) ) {
-%      chomp $line;
+%      $line =~ s/(\S*)\s*$/$1/;
 %      $line =~ s/^(.*)(#!).*/$1/;
 %
 %      $csv->parse($line) or die "can't parse line: " . $csv->error_input();