Skip to content

Commit 341e82f

Browse files
committed
Line ending is detected automatically since commit f2310e0
Closes #293
1 parent 32a55a3 commit 341e82f

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

docs/topics/reading-and-writing-to-file.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,6 @@ $reader = new \PhpOffice\PhpSpreadsheet\Reader\Csv();
455455
$reader->setInputEncoding('CP1252');
456456
$reader->setDelimiter(';');
457457
$reader->setEnclosure('');
458-
$reader->setLineEnding("\r\n");
459458
$reader->setSheetIndex(0);
460459

461460
$spreadsheet = $reader->load("sample.csv");
@@ -481,7 +480,6 @@ imports onto the 6th sheet:
481480
$reader = new \PhpOffice\PhpSpreadsheet\Reader\Csv();
482481
$reader->setDelimiter(';');
483482
$reader->setEnclosure('');
484-
$reader->setLineEnding("\r\n");
485483
$reader->setSheetIndex(5);
486484

487485
$reader->loadIntoExisting("05featuredemo.csv", $spreadsheet);

docs/topics/reading-files.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,6 @@ set other attributes for the data load:
551551
Method | Default
552552
-------------------|----------
553553
setEnclosure() | `"`
554-
setLineEnding() | `PHP_EOL`
555554
setInputEncoding() | `UTF-8`
556555

557556
Setting CSV delimiter applies to:

0 commit comments

Comments
 (0)