Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf8e398 commit 1dd8bbaCopy full SHA for 1dd8bba
1 file changed
src/Symfony/Component/Translation/Loader/CsvFileLoader.php
@@ -33,7 +33,7 @@ protected function loadResource(string $resource): array
33
throw new NotFoundResourceException(\sprintf('Error opening file "%s".', $resource), 0, $e);
34
}
35
36
- $file->setFlags(\SplFileObject::READ_CSV | \SplFileObject::SKIP_EMPTY);
+ $file->setFlags(\SplFileObject::READ_CSV | \SplFileObject::SKIP_EMPTY | \SplFileObject::DROP_NEW_LINE);
37
$file->setCsvControl($this->delimiter, $this->enclosure, '');
38
39
foreach ($file as $data) {
0 commit comments