Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Revert "[Command] fix emojis messing up the line width" #40697

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

Closed
wants to merge 2 commits into from

Conversation

Nyholm
Copy link
Member

@Nyholm Nyholm commented Apr 3, 2021

This reverts commit 36b36dc.

Q A
Branch? 5.2
Bug fix? yes
New feature? no
Deprecations?
Tickets Fix #40634, fix #40635
License MIT
Doc PR

PR #40524 cause a few regressions. There is a confusion between string "length" and string "width". This is sorted out in #40695.

I suggest reapply this commit on 5.x instead.

@nicolas-grekas
Copy link
Member

This patch was a step in the right direction. Merging it on 5.x won't make it less a regression for the referenced issue, unless we also fix the issue with width vs length, which then would be a bugfix, thus on 5.2 too. :)

What I mean is that I'm fine reverting, but the new patch would still be a fix, thus for 5.2 as of today.

@Nyholm
Copy link
Member Author

Nyholm commented Apr 3, 2021

See this as an alternative approach: #40698

@chalasr
Copy link
Member

chalasr commented Apr 5, 2021

Closing in favor of #40698.

@chalasr chalasr closed this Apr 5, 2021
@Nyholm
Copy link
Member Author

Nyholm commented Apr 5, 2021

Thank you

fabpot added a commit that referenced this pull request 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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.