Skip to content

Commit

Permalink
drop new lines
Browse files Browse the repository at this point in the history
  • Loading branch information
nekufa committed Dec 5, 2022
1 parent 0bf8fc7 commit f65345c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion php/Job/Export/Csv.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ public function run(): array
$item[$k] = json_encode($v);
}
}
$data[] = nl2br(implode($this->delimiter, $item));
$row = nl2br(implode($this->delimiter, $item));
$data[] = str_replace(["\n", "\r"], '', $row);
}

$total = $result['total'];
Expand Down

0 comments on commit f65345c

Please sign in to comment.