[freeside-commits] freeside/httemplate/misc
cust_main_note-import.cgi, 1.2, 1.3
Jeff Finucane,420,,
jeff at wavetail.420.am
Tue Apr 3 12:37:14 PDT 2007
Update of /home/cvs/cvsroot/freeside/httemplate/misc
In directory wavetail:/tmp/cvs-serv22894
Modified Files:
cust_main_note-import.cgi
Log Message:
correct handling of non-unix line termination
Index: cust_main_note-import.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/misc/cust_main_note-import.cgi,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- cust_main_note-import.cgi 20 Mar 2007 20:11:06 -0000 1.2
+++ cust_main_note-import.cgi 3 Apr 2007 19:37:11 -0000 1.3
@@ -122,7 +122,7 @@
% 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();
More information about the freeside-commits
mailing list