[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SF.net SVN: ledger-smb:[3057] addons/1.3/assets/trunk/LedgerSMB/DBObject/ Asset.pm



Revision: 3057
          http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=3057&view=rev
Author:   einhverfr
Date:     2010-08-30 22:59:55 +0000 (Mon, 30 Aug 2010)

Log Message:
-----------
Correcting EOL handling with asset uploads

Modified Paths:
--------------
    addons/1.3/assets/trunk/LedgerSMB/DBObject/Asset.pm

Modified: addons/1.3/assets/trunk/LedgerSMB/DBObject/Asset.pm
===================================================================
--- addons/1.3/assets/trunk/LedgerSMB/DBObject/Asset.pm	2010-08-23 05:40:52 UTC (rev 3056)
+++ addons/1.3/assets/trunk/LedgerSMB/DBObject/Asset.pm	2010-08-30 22:59:55 UTC (rev 3057)
@@ -33,7 +33,7 @@
     my $contents = join("\n", <$handle>);
 
     $self->{import_entries} = [];
-    for my $line (split /\n/, $contents){
+    for my $line (split /(\r\n|\r|\n)/, $contents){
         next if ($line !~ /,/);
         my @fields;
         $line =~ s/[^"]"",/"/g;


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.