Line ending is detected automatically since commit f2310e05d
Closes #293
This commit is contained in:
parent
32a55a3f13
commit
341e82f6eb
|
@ -455,7 +455,6 @@ $reader = new \PhpOffice\PhpSpreadsheet\Reader\Csv();
|
|||
$reader->setInputEncoding('CP1252');
|
||||
$reader->setDelimiter(';');
|
||||
$reader->setEnclosure('');
|
||||
$reader->setLineEnding("\r\n");
|
||||
$reader->setSheetIndex(0);
|
||||
|
||||
$spreadsheet = $reader->load("sample.csv");
|
||||
|
@ -481,7 +480,6 @@ imports onto the 6th sheet:
|
|||
$reader = new \PhpOffice\PhpSpreadsheet\Reader\Csv();
|
||||
$reader->setDelimiter(';');
|
||||
$reader->setEnclosure('');
|
||||
$reader->setLineEnding("\r\n");
|
||||
$reader->setSheetIndex(5);
|
||||
|
||||
$reader->loadIntoExisting("05featuredemo.csv", $spreadsheet);
|
||||
|
|
|
@ -551,7 +551,6 @@ set other attributes for the data load:
|
|||
Method | Default
|
||||
-------------------|----------
|
||||
setEnclosure() | `"`
|
||||
setLineEnding() | `PHP_EOL`
|
||||
setInputEncoding() | `UTF-8`
|
||||
|
||||
Setting CSV delimiter applies to:
|
||||
|
|
Loading…
Reference in New Issue