Skip to content
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

Remove extra line feed/return? #41

Open
michaelmruta opened this issue Jul 17, 2020 · 2 comments
Open

Remove extra line feed/return? #41

michaelmruta opened this issue Jul 17, 2020 · 2 comments

Comments

@michaelmruta
Copy link

michaelmruta commented Jul 17, 2020

there is a new line for every text i print, like the example below
how can i fix this?

.plainText("Text A"),
.plainText("Text")

Text A

Text B

.plainText("Text A\n Text B"), this works but i want to use the block w/ text alignment

Text A
Text B

IMG_5866

@abaif
Copy link

abaif commented Aug 9, 2020

This is a really big deal, printing the sample ticket I got about 10 inches long! Also need to put text grouped for showing some tablet struct.

For now, I`m using processed images to fill these need, until got solutions this is a workaround.

@KevinGong2013
Copy link
Owner

KevinGong2013 commented Feb 3, 2023

let receipt = Receipt(.🖨️58(.ascii))
<<~ .style(.selectsCharacterFont(.c))
<<< "testing1"
<<< "testing2"
<<< "testing3"
<<< "testing4"
<<~ .page(.print)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants