You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What do you think of having an option to right-align the text within a cell? This is nice when it comes to viewing numbers, since it aligns digits of the same place.
I imagine this would require the API of the elastic tabstops package to be expanded.
I'm happy to do this myself, I just wanted to check in and see whether you'd support it first.
Cheers,
Alex
The text was updated successfully, but these errors were encountered:
In theory, yes. We can leave this issue open, but it would be good to spec out an API on the tabwriter project first. This may be a bit hairy to implement, but I'm definitely open to adding more options to tabwriter.
tabwriter was inspired by Go's package by the same name, which does indeed support right alignment.
This flag allows the user to specify how data should be aligned within
columns. The options are:
* left
* right
* center
This alignment is applied to all columns.
Per the tabwriter crate, center alignment breaks ties in favor of being
closer to the left. Thus if "hi" appears in a column of width 5, it will
be printed as " hi ".
resolvesBurntSushi#165.
Hey there!
What do you think of having an option to right-align the text within a cell? This is nice when it comes to viewing numbers, since it aligns digits of the same place.
I imagine this would require the API of the elastic tabstops package to be expanded.
I'm happy to do this myself, I just wanted to check in and see whether you'd support it first.
Cheers,
Alex
The text was updated successfully, but these errors were encountered: