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
Description
When using the box or box-double Table styling, regular tables are rendered fine, but tables with nested TableCells using colspan break the layout.
How to reproduce
Using this code from the docs (plus a style):
$table = new Table($output);
$table->setStyle('box');
$table
->setHeaders(array('ISBN', 'Title', 'Author'))
->setRows(array(
array('99921-58-10-7', 'Divine Comedy', 'Dante Alighieri'),
new TableSeparator(),
array(new TableCell('This value spans 3 columns.', array('colspan' => 3))),
))
;
$table->render();
results in this:
compared to this with the default styling:
The text was updated successfully, but these errors were encountered:
rhukster
changed the title
Console tables using box style with colspan break layout
[console] tables using box style with colspan break layout
Sep 21, 2018
rhukster
changed the title
[console] tables using box style with colspan break layout
[symfony/console] tables using box style with colspan break layout
Sep 21, 2018
rhukster
changed the title
[symfony/console] tables using box style with colspan break layout
[symfony/console] Tables using "box" style with colspan break layout
Sep 21, 2018
This PR was merged into the 2.8 branch.
Discussion
----------
[Console] Fixed boxed table style with colspan
| Q | A
| ------------- | ---
| Branch? | 2.8
| Bug fix? | yes
| New feature? | no
| BC breaks? | no <!-- see https://symfony.com/bc -->
| Deprecations? | no
| Tests pass? | yes <!-- please add some, will be required by reviewers -->
| Fixed tickets | #28532
| License | MIT
| Doc PR | symfony/symfony-docs#... <!-- required for new features -->
Commits
-------
a67ff2a [Console] Fixed boxed table style with colspan
Symfony version(s) affected: 4.1.x
Description
When using the
box
orbox-double
Table styling, regular tables are rendered fine, but tables with nestedTableCell
s usingcolspan
break the layout.How to reproduce
Using this code from the docs (plus a style):
results in this:
compared to this with the default styling:
The text was updated successfully, but these errors were encountered: