8000 [Console] Table: support cells with newlines after a cell with colspan >= 2 by gmta · Pull Request #37731 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[Console] Table: support cells with newlines after a cell with colspan >= 2 #37731

8000 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

Merged
merged 0 commits into from
Aug 11, 2020

Conversation

gmta
Copy link
@gmta gmta commented Aug 3, 2020
Q A
Branch? 4.4
Bug fix? yes
New feature? no
Deprecations? no
Tickets N/A
License MIT
Doc PR N/A

When rendering a table with a cell containing newlines after a cell with
colspan set to at least 2, every line in the cell with newlines except the
first one fails to render.

This case is fixed by calling ->fillCells() on the unmerged rows and
implementing support for rows that start with a non-zero index for the columns.

While fixing this, I discovered another issue with colspan: if a cell following a
colspanned cell contains enough newlines to make the contents extend further
than the colspanned cell's contents, the cells become misaligned. This is now
also fixed.

@gmta gmta force-pushed the fix-table-helper-colspan-with-newlines branch 2 times, most recently from 2c755f9 to 4776950 Compare August 3, 2020 14:48
@gmta gmta changed the title Table: support cells with newlines after a cell with colspan >= 2 [Console] Table: support cells with newlines after a cell with colspan >= 2 Aug 3, 2020
@gmta gmta force-pushed the fix-table-helper-colspan-with-newlines branch from 724457a to 960aee9 Compare August 3, 2020 20:33
@chalasr chalasr added this to the 4.4 milestone Aug 4, 2020
@fabpot fabpot added the Console label Aug 11, 2020
@fabpot
Copy link
Member
fabpot commented Aug 11, 2020

Thank you @gmta.

@fabpot fabpot closed this Aug 11, 2020
@fabpot fabpot force-pushed the fix-table-helper-colspan-with-newlines branch from 960aee9 to ca11772 Compare August 11, 2020 07:30
@fabpot fabpot merged commit 0f92b9a into symfony:4.4 Aug 11, 2020
gmta pushed a commit to gmta/symfony that referenced this pull request Aug 11, 2020
These changes were introduced in symfony#37731
but no longer contributed to the actual fix, which was to perform a
->copyRow().
fabpot added a commit that referenced this pull request Aug 12, 2020
This PR was merged into the 4.4 branch.

Discussion
----------

[Console] Revert changes to Table->fillCells()

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Tickets       | N/A
| License       | MIT
| Doc PR        | N/A

These changes were introduced in #37731 but no longer contributed to the actual fix, which was to perform a ->copyRow().

Commits
-------

17263ca Revert changes to Table->fillCells()
symfony-splitter pushed a commit to symfony/console that referenced this pull request Aug 12, 2020
These changes were introduced in symfony/symfony#37731
but no longer contributed to the actual fix, which was to perform a
->copyRow().
This was referenced Aug 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants
0