-
Notifications
You must be signed in to change notification settings - Fork 157
Make summary table vertical #1334
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like the layout change, but most of the changes to the content of the cells don't feel like improvements to me...
4d511a5
to
474100b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Just one thing to address about row width.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's merge and get some experience with this
The table spacing was made nice in rust-lang#1312 but then got messed up again in rust-lang#1334. This commit does the following. - Fixes the table spacing. - Changes how test failures are printed, so the expected and actual outputs are printed nicely across multiple lines, instead of being stringified with into a single line. I should have done this some time ago, it makes adjusting the expected output *so* much easier. - Renames some variables, for clarity and consistency. - Imports `std::cmp` because it's used in multiple places. - Other minor tweaks.
The table spacing was made nice in rust-lang#1312 but then got messed up again in rust-lang#1334. This commit does the following. - Fixes the table spacing. - Changes how test failures are printed, so the expected and actual outputs are printed nicely across multiple lines, instead of being stringified with into a single line. I should have done this some time ago, it makes adjusting the expected output *so* much easier. - Renames some variables, for clarity and consistency. - Imports `std::cmp` because it's used in multiple places. - Other minor tweaks.
Based on Zulip discussion. The current look of the table can be seen here.
The table is now vertical.
I refactored the code to build a sort of a 2D matrix of values (
Vec<Vec<String>>
), so that it is easier to change the horizontal/vertical layout or column/row order in the future.