Skip to content

GetCssBorderStyle Has Problem When !important Is Specified#467

Merged
nicolaasuni merged 3 commits intotecnickcom:mainfrom
oleibman:borderimportant2
Aug 12, 2022
Merged

GetCssBorderStyle Has Problem When !important Is Specified#467
nicolaasuni merged 3 commits intotecnickcom:mainfrom
oleibman:borderimportant2

Conversation

@oleibman
Copy link
Contributor

@oleibman oleibman commented Jan 7, 2022

This is, in particular, a problem for PhpSpreadsheet. See PHPOffice/PhpSpreadsheet#1164. TCPDF thinks that there can be 0, 1, 2, or 3 components to shorthand border style, but there can be more, e.g. !important. Logic is rearranged to allow for more than 3. A new example file is added to demonstrate that the fix works correctly.

This is, in particular, a problem for PhpSpreadsheet. See PHPOffice/PhpSpreadsheet#1164. TCPDF thinks that there can be 0, 1, 2, or 3 components to shorthand border style, but there can be more, e.g. !important. Logic is rearranged to allow for more than 3. A new example file is added to demonstrate that the fix works correctly.
Better code coverage.
@nicolaasuni nicolaasuni merged commit 56e5dfd into tecnickcom:main Aug 12, 2022
oleibman added a commit to oleibman/PhpSpreadsheet that referenced this pull request Aug 14, 2022
Implementation of tecnickcom/TCPDF#467, which is available in just-released Tcpdf 6.5, will improve look of Tcpdf rendering for PhpSpreadsheet. Fix PHPOffice#1164.

One test had been suppressed for Tcpdf, ostensibly because it was not compatible with Php8. As it turns out, the PhpSpreadsheet code which invokes Tcpdf was (harmlessly) incorrect, so the Php8 issue was actually with PhpSpreadsheet, not Tcpdf. That code is corrected, and the test is no longer suppressed.
oleibman added a commit to PHPOffice/PhpSpreadsheet that referenced this pull request Aug 14, 2022
* Upgrade Dev TCPDF to 6.5

Implementation of tecnickcom/TCPDF#467, which is available in just-released Tcpdf 6.5, will improve look of Tcpdf rendering for PhpSpreadsheet. Fix #1164.

One test had been suppressed for Tcpdf, ostensibly because it was not compatible with Php8. As it turns out, the PhpSpreadsheet code which invokes Tcpdf was (harmlessly) incorrect, so the Php8 issue was actually with PhpSpreadsheet, not Tcpdf. That code is corrected, and the test is no longer suppressed.

* Update Change Log

Pick up some earlier changes as well as this one, and deprecations which had been omitted from the 1.24 change log.
@oleibman oleibman deleted the borderimportant2 branch August 14, 2022 19:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants