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
Top border of an horizontal table (Symfony Console) won't render correctly : the wrong crossing chars are used.
This is not visible with the default style which uses '+' character for both corners and crossings, but with custom crossing chars like ┼ ┌ ┬ ┐ ┤ ┘ ┴ └ ├ for instance, the bug is visible.
…endered (OskarStark)
This PR was squashed before being merged into the 6.3 branch.
Discussion
----------
[Console] Fix horizontal table top border is incorrectly rendered
| Q | A
| ------------- | ---
| Branch? | 6.3
| Bug fix? | yes
| New feature? | no
| Deprecations? | no
| Tickets | Fix#52101
| License | MIT
cc `@alainrinder`
Commits
-------
6ef10c1 [Console] Fix horizontal table top border is incorrectly rendered
Symfony version(s) affected
6.3.3
Description
Top border of an horizontal table (Symfony Console) won't render correctly : the wrong crossing chars are used.
This is not visible with the default style which uses '+' character for both corners and crossings, but with custom crossing chars like ┼ ┌ ┬ ┐ ┤ ┘ ┴ └ ├ for instance, the bug is visible.
How to reproduce
The following code
will render like this :
instead of what we could expect :
Possible Solution
One possible solution i found would be to modify the
render
method ofSymfony\Component\Console\Helper\Table
:The part that renders the first row :
could be modified like this to fix this issue :
Since there is no header row at the top for an horizontal table, the SEPARATOR_TOP_BOTTOM should not be used for horizontal table.
Maybe that is not the right way to fix it, but it seems to work.
The text was updated successfully, but these errors were encountered: