-
Notifications
You must be signed in to change notification settings - Fork 290
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
print nothing on %n #223
Comments
What are the use cases? |
In my case I use CometVisu as home automation visualization. It uses sprint.js and allows formatting with it. For my custom visualization I sometimes want to suppress output and there is currently no way to do so. In general I suppose the use case is exactly the same as %n in C |
#228 looks great, thanks! Regarding the option I can see the point where such a syntax may make sense, but I'm not sure if overloading "n" (having a specific meaning in original sprintf) is self-explanatory or if it deserves a dedicated (conflict-free) option. |
POSIX C/C++ sprintf have a specifier "n" that prints nothing. This can be useful in some cases to suppress content.
Would you mind implementing %n to print nothing in sprint.js?
Thanks!
The text was updated successfully, but these errors were encountered: