Skip to content

Commit

Permalink
Fixed issue #18318: Empty line at the end of csv export (#2942)
Browse files Browse the repository at this point in the history
Co-authored-by: lapiudevgit <devgit@lapiu.biz>
  • Loading branch information
gabrieljenik and lapiudevgit committed Mar 20, 2023
1 parent e2bac39 commit caad58d
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions application/helpers/admin/export/CsvWriter.php
Expand Up @@ -87,8 +87,6 @@ protected function outputRecord($headers, $values, FormattingOptions $oOptions)

public function close()
{
// Output white line at the end, better for R import
echo "\r\n";
if (!is_null($this->file)) {
fwrite($this->file, "\r\n");
fclose($this->file);
Expand Down

0 comments on commit caad58d

Please sign in to comment.