Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Eliminate a big chunck of duplicated code for reading styles #2021

Merged
merged 2 commits into from
Apr 24, 2021

Conversation

MarkBaker
Copy link
Member

This is:

- [ ] a bugfix
- [ ] a new feature
- [X] refactoring

Checklist:

Why this change is needed?

Eliminate a large block of code duplication in the Xlsx Reader when reading styles; provide one central class to handle reading styles

@MarkBaker MarkBaker merged commit 55a41e8 into master Apr 24, 2021
@MarkBaker MarkBaker deleted the Xlsx-Reader-Styles-Refactoring branch April 24, 2021 16:46
oleibman added a commit to oleibman/PhpSpreadsheet that referenced this pull request Apr 28, 2021
Fix for PHPOffice#2021. When Html Reader encounters an embedded table, it tries to shift it up a row. It obviously should not attempt to shift it above row 1. @danmodini reported the problem, and suggests the correct solution. This PR implements that and adds a test case.
MarkBaker pushed a commit that referenced this pull request Apr 29, 2021
* Fix for Issue 2029 (Invalid Cell Coordinate A-1)

Fix for #2021. When Html Reader encounters an embedded table, it tries to shift it up a row. It obviously should not attempt to shift it above row 1. @danmodini reported the problem, and suggests the correct solution. This PR implements that and adds a test case.

Performing some additional testing, I found that Html Reader cannot handle inline column width or row height set in points rather than pixels (and HTML writer with useInlineCss generates these values in points). It also doesn't handle border style when the border width (which it ignores) is omitted. Fixed and added tests.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant