Skip to content

Commit

Permalink
Merge pull request #308 from fulgurio/master
Browse files Browse the repository at this point in the history
Problem with row options on Excel 2007
  • Loading branch information
mk-j authored May 19, 2021
2 parents 415bc7c + 70670e2 commit 4da41e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xlsxwriter.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ public function writeSheetRow($sheet_name, array $row, $row_options=null)
$customHt = isset($row_options['height']) ? true : false;
$hidden = isset($row_options['hidden']) ? (bool)($row_options['hidden']) : false;
$collapsed = isset($row_options['collapsed']) ? (bool)($row_options['collapsed']) : false;
$sheet->file_writer->write('<row collapsed="'.($collapsed).'" customFormat="false" customHeight="'.($customHt).'" hidden="'.($hidden).'" ht="'.($ht).'" outlineLevel="0" r="' . ($sheet->row_count + 1) . '">');
$sheet->file_writer->write('<row collapsed="'.($collapsed ? 'true' : 'false').'" customFormat="false" customHeight="'.($customHt ? 'true' : 'false').'" hidden="'.($hidden ? 'true' : 'false').'" ht="'.($ht).'" outlineLevel="0" r="' . ($sheet->row_count + 1) . '">');
}
else
{
Expand Down

0 comments on commit 4da41e4

Please sign in to comment.