-
Notifications
You must be signed in to change notification settings - Fork 0
-
Notifications
You must be signed in to change notification settings - Fork 0
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
'!' flag doesn't add space in "no-prefix" case #4
Comments
@polyanskiy, thanks for reporting this. You're right, I can see where that is happening and why you would want the space. I think this was an oversight on my part. The problem I have is how to handle a case where a space is not desired. For example, if you're not adding anything after the prefix. Ideally, both cases could be handled intuitively. I'd like to think on it before I implement something. My currently thought is a double flag What are your thoughts on it? |
hmm... I don't see how to handle this without a different flag (or a double flag as you suggest). |
You never really know how someone is going to use a library. It's best to be flexible and non-opinionated. |
Fixed and added |
Very useful package!
I am using it with a '!' flag to display an output of a joulemeter with a space between the number and the unit for better readability. This works fine except the 1--1000 "no-prefix" range: in this case no space is added.
The text was updated successfully, but these errors were encountered: