8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
I was playing with tables and rowspans and it seems broken when using multiple rowspans.
I tried the following code:
$table = new Table($output); $table->setRows([ [new TableCell('1a', ['rowspan' => 4]), new TableCell('1a', ['rowspan' => 2]), '1', 'a'], ['1', 'a'], [new TableCell('1a', ['rowspan' => 2]), '1', 'a'], ['1', 'a'], ]); $table->render();
Which renders:
+----+----+---+---+ | 1a | 1a | 1 | a | | | | 1 | a | | | | | | | | | | | | 1a | 1 | a | | | | 1 | a | | +----+----+---+---+
I was expecting to have:
+----+----+---+---+ | 1a | 1a | 1 | a | | | | 1 | a | | | 1a | 1 | a | | | | 1 | a | +----+----+---+---+
If I write my table the other way around like this:
$table = new Table($output); $table->setRows([ ['1', 'a', new TableCell('1a', ['rowspan' => 2]), new TableCell('1a', ['rowspan' => 4])], ['1', 'a'], ['1', 'a', new TableCell('1a', ['rowspan' => 2])], ['1', 'a'], ]); $table->render();
I have the following (which was expected):
+---+---+----+----+ | 1 | a | 1a | 1a | | 1 | a | | | | 1 | a | 1a | | | 1 | a | | | +---+---+----+----+
The text was updated successfully, but these errors were encountered:
bug #21599 [Console][Table] fixed render when using multiple rowspans…
be854e1
…. (aitboudad) This PR was merged into the 2.7 branch. Discussion ---------- [Console][Table] fixed render when using multiple rowspans. | Q | A | ------------- | --- | Branch? | 2.7 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #21018 | License | MIT | Doc PR | ~ Commits ------- 17e459e [Console][Table] fixed render when using multiple rowspans.
No branches or pull requests
I was playing with tables and rowspans and it seems broken when using multiple rowspans.
I tried the following code:
Which renders:
I was expecting to have:
If I write my table the other way around like this:
I have the following (which was expected):
The text was updated successfully, but these errors were encountered: