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
7.2
When rendering a table in console and use emojis then width of columns could be wrong calculated.
Use any emoji with variant selector (U+FE0F, U+FE0E) in cell output. For example ❄️
Don't count number of variant selector symbols when counting padding for multi-byte strings.
private function renderCell(/* .. */): string { // ... if (false !== $encoding = mb_detect_encoding($cell, null, true)) { $width += \strlen($cell) - mb_strwidth(str_replace(["\xef\xb8\x8f", "\xef\xb8\x8e", ], "", $cell), $encoding); }
The text was updated successfully, but these errors were encountered:
renderCell()
No branches or pull requests
Uh oh!
There was an error while loading. Please reload this page.
Symfony version(s) affected
7.2
Description
When rendering a table in console and use emojis then width of columns could be wrong calculated.
How to reproduce
Use any emoji with variant selector (U+FE0F, U+FE0E) in cell output. For example ❄️
Possible Solution
Don't count number of variant selector symbols when counting padding for multi-byte strings.
Additional Context
The text was updated successfully, but these errors were encountered: