remove the one leading space for all lines in show(); fixes line wrapping problem #167
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.
Dear Kristoffer,
This PR is a simple fix to #166. It removes all the leading spaces (" ") that you had in each line of output in print_timer in show.jl. This makes my output table fill the exact width available, without spilling over by 1 char as in your current master.
Note that the 1-char spillover can be predicted, eg for the 1st line of header here:
TimerOutputs.jl/src/show.jl
Line 117 in 89f585e
since it prints one space then
total_table_width
additional chars, giving a width oftotal_table_width+1
.You have otherwise done a perfect job of insuring that
total_table_width <= available_width
, I think.Maybe no-one else has this problem, in which case, please ignore the PR.
But I'd be surprised if that were the case, since I'm in a very standard set-up: GNOME terminal, 80-char width.
Thanks again! Alex