Skip to content

Commit d673cda

Browse files
committed
Merge pull request #4 from ebanx/hotfix/writeCSV-delimiter
Fix delimiter in writeCSV
2 parents 7ed9a98 + 64b3f34 commit d673cda

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xlsxwriter.class.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ public function writeCSV(array $data, array $header_types=array(), $delimiter =
213213

214214
$output = '';
215215
$output .= implode($delimiter, $header_text) . "\n";
216-
$output .= implode("\n", array_map(function($array) {
216+
$output .= implode("\n", array_map(function($array) use (&$delimiter) {
217217
return implode($delimiter, $array);
218218
}, $data));
219219
return $output;

0 commit comments

Comments
 (0)