Skip to content

Commit f65345c

Browse files
committed
drop new lines
1 parent 0bf8fc7 commit f65345c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

php/Job/Export/Csv.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ public function run(): array
3232
$item[$k] = json_encode($v);
3333
}
3434
}
35-
$data[] = nl2br(implode($this->delimiter, $item));
35+
$row = nl2br(implode($this->delimiter, $item));
36+
$data[] = str_replace(["\n", "\r"], '', $row);
3637
}
3738

3839
$total = $result['total'];

0 commit comments

Comments
 (0)