From 27b0c69fd410b353e91e48762627f01ee9948e3d Mon Sep 17 00:00:00 2001 From: Franz Holzinger Date: Mon, 22 Sep 2014 15:46:55 +0200 Subject: [PATCH] Update Head.php The generated HTML and PDF tables are missing the border lines. Sample_07_TemplateCloneRow.docx shows the lines around the table and the table cells. However the generated HTML and PDF file are missing those lines. This patch fixes this issue. --- src/PhpWord/Writer/HTML/Part/Head.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/PhpWord/Writer/HTML/Part/Head.php b/src/PhpWord/Writer/HTML/Part/Head.php index 4bfe3046..7339c74c 100644 --- a/src/PhpWord/Writer/HTML/Part/Head.php +++ b/src/PhpWord/Writer/HTML/Part/Head.php @@ -97,6 +97,14 @@ class Head extends AbstractPart 'border' => '0', 'border-top' => '1px solid #CCC', ), + 'table' => array( + 'border' => '1px solid black', + 'border-spacing' => '0px', + 'width' => '100%', + ), + 'td' => array( + 'border' => '1px solid black', + ), ); foreach ($defaultStyles as $selector => $style) { $styleWriter = new GenericStyleWriter($style);