Commit 405f88e
committed
python: support W presentation type
Problem: When outputting wide characters (e.g. emojis) in flux-jobs,
the alignment of output can be poor due to the characters having
different output widths.
Solution: Add a new W presentation type that can adjust formating
of the form "(<|>)N", e.g. {id.emoji:>12W}. The output width will
be adjusted given the number of wide characters that exist in the
string.
Note that this presentation type does not help for all output scenarios,
as it depends on the width of the output and width of the alignment,
but it definitely helps in some scenarios.1 parent e57c9cf commit 405f88e
1 file changed
+19
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
| |||
448 | 449 | | |
449 | 450 | | |
450 | 451 | | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
451 | 470 | | |
452 | 471 | | |
453 | 472 | | |
| |||
0 commit comments