Line ending is detected automatically since commit f2310e05d

Closes #293
This commit is contained in:
Adrien Crivelli 2017-12-17 16:49:37 +09:00
parent 32a55a3f13
commit 341e82f6eb
No known key found for this signature in database
GPG Key ID: B182FD79DC6DE92E
2 changed files with 0 additions and 3 deletions

View File

@ -455,7 +455,6 @@ $reader = new \PhpOffice\PhpSpreadsheet\Reader\Csv();
$reader->setInputEncoding('CP1252'); $reader->setInputEncoding('CP1252');
$reader->setDelimiter(';'); $reader->setDelimiter(';');
$reader->setEnclosure(''); $reader->setEnclosure('');
$reader->setLineEnding("\r\n");
$reader->setSheetIndex(0); $reader->setSheetIndex(0);
$spreadsheet = $reader->load("sample.csv"); $spreadsheet = $reader->load("sample.csv");
@ -481,7 +480,6 @@ imports onto the 6th sheet:
$reader = new \PhpOffice\PhpSpreadsheet\Reader\Csv(); $reader = new \PhpOffice\PhpSpreadsheet\Reader\Csv();
$reader->setDelimiter(';'); $reader->setDelimiter(';');
$reader->setEnclosure(''); $reader->setEnclosure('');
$reader->setLineEnding("\r\n");
$reader->setSheetIndex(5); $reader->setSheetIndex(5);
$reader->loadIntoExisting("05featuredemo.csv", $spreadsheet); $reader->loadIntoExisting("05featuredemo.csv", $spreadsheet);

View File

@ -551,7 +551,6 @@ set other attributes for the data load:
Method | Default Method | Default
-------------------|---------- -------------------|----------
setEnclosure() | `"` setEnclosure() | `"`
setLineEnding() | `PHP_EOL`
setInputEncoding() | `UTF-8` setInputEncoding() | `UTF-8`
Setting CSV delimiter applies to: Setting CSV delimiter applies to: