From 5a8ecf5f8936e59160c13bc47a31148b4b54f59e Mon Sep 17 00:00:00 2001 From: Artem Vasilev Date: Tue, 22 Nov 2022 13:19:56 +0300 Subject: [PATCH 1/3] add border-spacing to default styles --- src/PhpWord/Writer/HTML/Part/Head.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/PhpWord/Writer/HTML/Part/Head.php b/src/PhpWord/Writer/HTML/Part/Head.php index a2541aa4b0..96e73e2eb5 100644 --- a/src/PhpWord/Writer/HTML/Part/Head.php +++ b/src/PhpWord/Writer/HTML/Part/Head.php @@ -101,6 +101,7 @@ private function writeStyles() 'table' => [ 'border' => '1px solid black', 'border-spacing' => '0px', + 'border-collapse' => 'collapse', 'width ' => '100%', ], 'td' => [ From 6203febccaae319ba9edf8beca5bfe6454fd4cc1 Mon Sep 17 00:00:00 2001 From: Artem Vasilev Date: Tue, 22 Nov 2022 13:23:38 +0300 Subject: [PATCH 2/3] replace tab to space --- src/PhpWord/Writer/HTML/Part/Head.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PhpWord/Writer/HTML/Part/Head.php b/src/PhpWord/Writer/HTML/Part/Head.php index 96e73e2eb5..6117f736e3 100644 --- a/src/PhpWord/Writer/HTML/Part/Head.php +++ b/src/PhpWord/Writer/HTML/Part/Head.php @@ -101,7 +101,7 @@ private function writeStyles() 'table' => [ 'border' => '1px solid black', 'border-spacing' => '0px', - 'border-collapse' => 'collapse', + 'border-collapse' => 'collapse', 'width ' => '100%', ], 'td' => [ From 36b9af6cc273e5b1479b07c8cd13b80302581b36 Mon Sep 17 00:00:00 2001 From: Progi1984 Date: Wed, 30 Aug 2023 20:51:08 +0200 Subject: [PATCH 3/3] Updated Changelog --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2439058f6f..39f71ddcea 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,8 @@ This project adheres to [Semantic Versioning](http://semver.org/). - HTML Reader : Support for `font-variant: small-caps` by @cambraca in #2117 - Improved TextDirection for styling a cell by @terryzwt in #2429 - Word2007 Reader : Added option to disable loading images by @aelliott1485 in #2450 +- HTML Writer : Added border-spacing to default styles for table by @kernusr in #2451 + ### Bug fixes - Fixed wrong mimetype for docx files by @gamerlv in #2416