status: align output columns#85
Merged
Merged
Conversation
Since the resource name lengths vary significantly, the "\t" was not sufficient to align the output columns. iron1/mgs (llnl/lustre) Running on iron1 iron2 (llnl/zpool) Running on iron2 Add field widths to the print() calls so the output is aligned. iron1/mgs (llnl/lustre) Running on iron1 iron2 (llnl/zpool) Running on iron2 Also, add a newline below the table of resources since the content below (Connected hosts, etc.) is two columns wide instead of 5 or more, and is different in kind (lists of hosts vs resources).
Contributor
Author
|
The column width I chose was almost arbitrary, and fixed. Perhaps there's a better way. |
Collaborator
I think this is good enough. I'm happy with incremental improvements on the Line 65 in bbbf0e1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Since the resource name lengths vary significantly, the "\t" was not sufficient to align the output columns.
Add field widths to the print() calls so the output is aligned.
Also, add a newline below the table of resources since the content below (Connected hosts, etc.) is two columns wide instead of 5 or more, and is different in kind (lists of hosts vs resources).