mirror of
https://github.com/bootandy/dust.git
synced 2026-06-08 11:29:05 +03:00
[GH-ISSUE #230] How can I remove space at the first character #105
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @avatar-lavventura on GitHub (Jul 31, 2022).
Original GitHub issue: https://github.com/bootandy/dust/issues/230
When I run
dustexample output is as follows:Instead can I remove the space at each line as:
@bootandy commented on GitHub (Aug 8, 2022):
There isn't an option to do that.
I suppose we could remove that first space.
The space is there because I wanted to handle strings like "1023K" (ie just below 1M). We could remove the space but then how would you handle the case where we need to print 1023K ?
@avatar-lavventura commented on GitHub (Aug 8, 2022):
Maybe we could remova space if there is no
1023K(4 digit file sizes)?@bootandy commented on GitHub (Aug 8, 2022):
Yes that would be an option. I can look at doing that. I suspect I did it this way for simplicity originally.
(An alternative could be to show 1023K as 0.9M but I don't like this idea.)
@bootandy commented on GitHub (Aug 19, 2022):
This was easier to do than expected.