Commit ec7dfe5
committed
python: support W presentation type
Problem: Python does not take into account wide characters
(i.e. emojis) when attempting to do output alignment. So when
outputting wide characters in flux-jobs, the output can be poor
due to the characters have 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.1 parent a4f3786 commit ec7dfe5
1 file changed
+24
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| |||
579 | 580 | | |
580 | 581 | | |
581 | 582 | | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
582 | 604 | | |
583 | 605 | | |
584 | 606 | | |
| |||
735 | 757 | | |
736 | 758 | | |
737 | 759 | | |
| 760 | + | |
738 | 761 | | |
739 | 762 | | |
740 | 763 | | |
| |||
759 | 782 | | |
760 | 783 | | |
761 | 784 | | |
| 785 | + | |
762 | 786 | | |
763 | 787 | | |
764 | 788 | | |
| |||
0 commit comments