Closed (outdated)
Project:
Feeds
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
20 Feb 2012 at 01:14 UTC
Updated:
26 Nov 2025 at 15:01 UTC
Jump to comment: Most recent
Comments
Comment #1
chrisjlee commented@webchick Can you provide an example file to test with? forgive me I don't have excel on mac but this problem raises my curiosity.
p.s. you should try sed for the time being it's a little easier:
$ `sed -e 's/\r/\n/g' filename.csv`Comment #2
wusel commentedLike I wrote at http://drupal.org/node/622710 - "CSV":
It would be fine, if drupal would convert the line-endings as needed.
But the same problem is with all files from other operating systems like ".patch"-files to patch Drupal and with imported CSV-Files for the module Migrate.
Comment #3
rickmanelius commentedPHP_EOL could be used to detect the OS's end line format. And opening the file and running a count on each end line type would help us detect the most likely end line format for the file. Then we could create a series of regular expressions to convert the files detected end line's into an OS friendly version and call it a day.
A relevant link on the usage of PHP_EOL.
http://stackoverflow.com/questions/623776/does-php-have-a-function-to-de...
Comment #4
timcosgrove commentedSubscribe. Banged my head against a wall on this for 45 minutes or so.
Comment #5
rickmanelius commentedFYI, I've tried the http://drupal.org/project/feeds_xls module and it worked without a hitch on my first import with a styled XLS file. For anyone else struggling with the CSV endline issue, this might be a path forward.
Comment #6
bluegeek9 commentedUnfortunately, Drupal 7 is End of Life and no longer supported. We strongly encourage you to upgrade to a supported version of Drupal.