Commit cfe2fcc
committed
bug symfony#61319 [Console] [Table] Don't split grapheme clusters (schlndh)
This PR was merged into the 6.4 branch.
Discussion
----------
[Console] [Table] Don't split grapheme clusters
| Q | A
| ------------- | ---
| Branch? | 6.4
| Bug fix? | yes
| New feature? | no
| Deprecations? | no
| Issues |
| License | MIT
This change prevents splitting of grapheme clusters due to wrapping in Table. The emoji consists of multiple code points, so `CodePointString` chunked it into multiple pieces and wordrap then split them into separate lines. E.g.:
```
--- Expected
+++ Actual
@@ @@
-'👩🌾'
+'👩
+
+🌾'
```
Commits
-------
c258c19 [Console][Table] Don't split grapheme clustersFile tree
2 files changed
+3
-1
lines changed- src/Symfony/Component/Console
- Formatter
- Tests/Formatter
2 files changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
285 | 285 | | |
286 | 286 | | |
287 | 287 | | |
288 | | - | |
| 288 | + | |
289 | 289 | | |
290 | 290 | | |
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
373 | 373 | | |
374 | 374 | | |
375 | 375 | | |
| 376 | + | |
376 | 377 | | |
377 | 378 | | |
378 | 379 | | |
| |||
392 | 393 | | |
393 | 394 | | |
394 | 395 | | |
| 396 | + | |
395 | 397 | | |
396 | 398 | | |
397 | 399 | | |
| |||
0 commit comments