Commit 035a31f
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 formatting
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 9a9b37d commit 035a31f
1 file changed
+23
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
34 | 33 | | |
35 | 34 | | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| |||
579 | 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 | + | |
582 | 602 | | |
583 | 603 | | |
584 | 604 | | |
| |||
735 | 755 | | |
736 | 756 | | |
737 | 757 | | |
| 758 | + | |
738 | 759 | | |
739 | 760 | | |
740 | 761 | | |
| |||
759 | 780 | | |
760 | 781 | | |
761 | 782 | | |
| 783 | + | |
762 | 784 | | |
763 | 785 | | |
764 | 786 | | |
| |||
0 commit comments