You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 26, 2022. It is now read-only.
I'm trying to create a PR to add cellVerticalAlignment (in addition to cellAlignment) [top/bottom/justify/center] etc, and to fix setShouldWrapText so that wrapText can be explicitly set as false by default, as well as true.
Hoping in the process to fix these issues: #829 #737
But things are a little unclear to me.. if I create a writer, without any configuration..
So, some of my desired style stipulations (font: Arial and size: 10) are getting applied to BOTH of the $registeredStyles, but the horizontal=left, vertical=top and wrapText=false are only being applied in the first style, and therefore the output contains the correct styling in the first <xf> tag, but not in the 2nd.
If I completely manually override the output of getCellXfsSectionContent() to return a manual string with what I want, i.e.:
I'm trying to create a PR to add
cellVerticalAlignment
(in addition tocellAlignment
)[top/bottom/justify/center]
etc, and to fixsetShouldWrapText
so thatwrapText
can be explicitly set as false by default, as well as true.Hoping in the process to fix these issues:
#829
#737
But things are a little unclear to me.. if I create a writer, without any configuration..
$writer = WriterEntityFactory::createXLSXWriter();
..and then var_dump($registeredStyles) and var_dump($content) (the output) during StyleManager's getCellXfsSectionContent() method, I get:
What I don't understand is, why are there two styles defined by default, and why therefore a count of 2 for
<cellXfs>
?Then if I apply the styles I want:
These same dumps change to:
So, some of my desired style stipulations (font: Arial and size: 10) are getting applied to BOTH of the $registeredStyles, but the horizontal=left, vertical=top and wrapText=false are only being applied in the first style, and therefore the output contains the correct styling in the first
<xf>
tag, but not in the 2nd.If I completely manually override the output of getCellXfsSectionContent() to return a manual string with what I want, i.e.:
..then the resulting .xlsx file's cells are all formatted how I expect.
Any ideas what's not working right here?
The text was updated successfully, but these errors were encountered: