-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[console] Table grid offset bug #40634
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
Labels
Comments
Lovely. Thank you for this issue and the reproducer. The error comes form this PR: #40524 When the cell is splitted on multiple rows, the first row is: The $string = '�[31msome text �[39m<fg=default;bg=de
8000
fault>';
strlen(string); // 43
(new UnicodeString($string))->width(false); // 41 I dont know why, It might be an issue in the string component. |
Could it be related to #40635? |
This was referenced Apr 3, 2021
Closed
fabpot
added a commit
that referenced
this issue
Apr 8, 2021
…, grasmash) This PR was merged into the 5.2 branch. Discussion ---------- [Console] Add Helper::width() and Helper::length() | Q | A | ------------- | --- | Branch? | 5.2 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | Close #40697 Fix #40634, fix #40635 | License | MIT | Doc PR | This PR will add add a Helper::strwidth() and a Helper::strlength(). Same with with the Helper::strlenWithoutDecoration(). It does not deprecate anything. That is done in #40695 With this PR we dont have to revert the emoji issue (ie close #40697) FYI @grasmash, I used your tests from #40635 Commits ------- d9ea4c5 Add test. dc02ab3 [Console] Add Helper::strwidth() and Helper::strlength()
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Symfony version(s) affected: 5.2.6
Description
Seems like console table has offset issue with latest Symfony;
symfony/console 5.2.5:

symfony/console 5.2.6:

It seems like to be related to custom styles inside table.
I created simple example repository to demonstrate this bug - https://github.com/tarlepp/symfony-console-bug
The text was updated successfully, but these errors were encountered: