summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjeff <jeff>2007-04-03 19:38:29 +0000
committerjeff <jeff>2007-04-03 19:38:29 +0000
commitd0b0da42773e5026d34d9f15085dc076f399c91d (patch)
tree989bb4dc3780edfaabdc78ed7f78e799cdf90884
parentd8af7df5ae8e68ea83a5644341c58710f3f66e6a (diff)
correct handling of non-unix line termination (backport)
-rw-r--r--httemplate/misc/cust_main_note-import.cgi2
1 files changed, 1 insertions, 1 deletions
diff --git a/httemplate/misc/cust_main_note-import.cgi b/httemplate/misc/cust_main_note-import.cgi
index 690ca783d..b93c5c1cc 100644
--- a/httemplate/misc/cust_main_note-import.cgi
+++ b/httemplate/misc/cust_main_note-import.cgi
@@ -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();