Added support for cell formats when writing Excel files

This commit is contained in:
Alexander Rakushin authored and Adrien Loison committed 2019-10-01 20:08:54 +00:00
1 parent 16a2f91a22
commit 40aecd7b90
6 files changed
+277 -2

No files matched your search

@@ -88,6 +88,9 @@ class StyleMerger
if (!$style->getBorder() && $baseStyle->shouldApplyBorder()) {
$styleToUpdate->setBorder($baseStyle->getBorder());
}
if (!$style->getFormat() && $baseStyle->shouldApplyFormat()) {
$styleToUpdate->setFormat($baseStyle->getFormat());
}
if (!$style->shouldApplyBackgroundColor() && $baseStyle->shouldApplyBackgroundColor()) {
$styleToUpdate->setBackgroundColor($baseStyle->getBackgroundColor());
}