Skip to content

Commit 27b0c69

Browse files
author
Franz Holzinger
committed
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.
1 parent b49f08b commit 27b0c69

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/PhpWord/Writer/HTML/Part/Head.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,14 @@ private function writeStyles()
9797
'border' => '0',
9898
'border-top' => '1px solid #CCC',
9999
),
100+
'table' => array(
101+
'border' => '1px solid black',
102+
'border-spacing' => '0px',
103+
'width' => '100%',
104+
),
105+
'td' => array(
106+
'border' => '1px solid black',
107+
),
100108
);
101109
foreach ($defaultStyles as $selector => $style) {
102110
$styleWriter = new GenericStyleWriter($style);

0 commit comments

Comments
 (0)