We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
There is no reason to apply and immediately revert a style if there was no content to be affected by the style.
The following pattern currently blindly emits the surrounding Command.TextSize(2,2), Command.TextSize(1,1).
Command.TextSize(2,2), Command.TextSize(1,1)
// current text size: 1x1 withTextSize(2, 2) { // This does nothing, so why not avoid // setting the temporary 2x2 text size as well? }
While emitting the commands is benign, it would be nice if we didn't send unnecessary commands to the printer.
Task: If the content lambda of temporary style builders didn't do anything, do not apply the surrounding style either.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
There is no reason to apply and immediately revert a style if there was no content to be affected by the style.
The following pattern currently blindly emits the surrounding
Command.TextSize(2,2), Command.TextSize(1,1)
.While emitting the commands is benign, it would be nice if we didn't send unnecessary commands to the printer.
Task: If the content lambda of temporary style builders didn't do anything, do not apply the surrounding style either.
The text was updated successfully, but these errors were encountered: