Skip to content

[Console] Problem on table with more than 3 cells with colspan #16998

@yosmanyga

Description

@yosmanyga

Table is rendering wrong when adding more than 3 cells with colspan:

$table
    ->setRows([
        [
            new TableCell('1', ['colspan' => 2]),
            new TableCell('2', ['colspan' => 2]),
            new TableCell('3', ['colspan' => 2]),
            new TableCell('4', ['colspan' => 2])
        ]
    ])
    ->render()
;
+--+--+--+--+--+--+--+--+
| 1   | 2   | 3    |  |
+--+--+--+--+--+--+--+--+

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions