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

"\n\r" support / New Line from rich text box support #281

Open
jasikpl123 opened this issue Sep 20, 2024 · 1 comment
Open

"\n\r" support / New Line from rich text box support #281

jasikpl123 opened this issue Sep 20, 2024 · 1 comment

Comments

@jasikpl123
Copy link

I've stumbled upon an issue concerning no auto new line when printing stuff from rich text box, i.e:
when i want to print something from richtextbox where there is a new line (using Enter button) the receipt printer just skips it and the whole text is fed onto new line (words are cut)

For example:
Normal text:
The quick brown fox jumps over the lazy dog (43 characters)

The printer prints like this:
The quick brown fox jumps over the lazy do
g

Another example:
The quick brown fox jumps over the lazy
dog

which is printed like:
The quick brown fox jumps over the lazydog

i hope everyone gets what i mean
thanks

@igorocampos
Copy link
Collaborator

Are you sure those are precisely the characters that are coming from the textbox? \n\r sounds a bit odd to me. It is usually \r\n instead... Could you debug this method? Putting a breakpoint there and checking exactly what are the characters that parameter data holds?

If you could provide a screenshot of that, I might be able to help better.

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

No branches or pull requests

2 participants