From 2329e178aa39be2263f505865376e7ee332ce7cd Mon Sep 17 00:00:00 2001 From: Mark Baker Date: Mon, 4 Jun 2012 15:48:05 +0000 Subject: [PATCH] Gridlines fix for tcPDF renderer git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@91319 2327b42d-5241-43d6-9e2a-de5ac946f064 --- Classes/PHPExcel/Writer/HTML.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Classes/PHPExcel/Writer/HTML.php b/Classes/PHPExcel/Writer/HTML.php index be909b1d..08a2676d 100644 --- a/Classes/PHPExcel/Writer/HTML.php +++ b/Classes/PHPExcel/Writer/HTML.php @@ -229,7 +229,7 @@ class PHPExcel_Writer_HTML implements PHPExcel_Writer_IWriter { */ private function _mapBorderStyle($borderStyle) { switch ($borderStyle) { - case PHPExcel_Style_Border::BORDER_NONE: return '0px'; + case PHPExcel_Style_Border::BORDER_NONE: return '1px hidden'; case PHPExcel_Style_Border::BORDER_DASHDOT: return '1px dashed'; case PHPExcel_Style_Border::BORDER_DASHDOTDOT: return '1px dotted'; case PHPExcel_Style_Border::BORDER_DASHED: return '1px dashed'; @@ -905,7 +905,11 @@ class PHPExcel_Writer_HTML implements PHPExcel_Writer_IWriter { $style = isset($this->_cssStyles['table']) ? $this->_assembleCSS($this->_cssStyles['table']) : ''; - $html .= ' ' . PHP_EOL; + if ($this->_isPdf && $pSheet->getShowGridLines()) { + $html .= '
' . PHP_EOL; + } else { + $html .= '
' . PHP_EOL; + } } // Write elements