From ff376dc43122a0c2431f033546423005ec893355 Mon Sep 17 00:00:00 2001 From: DarkBee Date: Thu, 28 Jun 2018 15:53:06 +0200 Subject: [PATCH] Update xlsxwriter.class.php Added support for multiple border styles, e.g. $default_style = ['fill' => '#5b9bd5', 'color' => '#ffffff', 'font-style' => 'bold', 'border' => 'top,right,bottom', 'border-style' => 'thin,thick,thin']; --- xlsxwriter.class.php | 35 +++++++++++++++++------------------ 1 file changed, 17 insertions(+), 18 deletions(-) diff --git a/xlsxwriter.class.php b/xlsxwriter.class.php index a987735f8..e924f44b5 100644 --- a/xlsxwriter.class.php +++ b/xlsxwriter.class.php @@ -18,7 +18,7 @@ class XLSXWriter protected $company; protected $description; protected $keywords = array(); - + protected $current_sheet; protected $sheets = array(); protected $temp_files = array(); @@ -230,7 +230,7 @@ public function writeSheetHeader($sheet_name, array $header_types, $col_options $sheet->columns = $this->initializeColumnTypes($header_types); if (!$suppress_row) { - $header_row = array_keys($header_types); + $header_row = array_keys($header_types); $sheet->file_writer->write('