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

Abc label shows garbage <br> tags if text contains newlines at the end #867

Open
php4fan opened this issue Feb 2, 2025 · 0 comments
Open

Comments

@php4fan
Copy link
Contributor

php4fan commented Feb 2, 2025

To reproduce:

  1. Create an Abc label
  2. Enter the text:
Foo bar


(note the at least two newline characters at the end)
3. Click Ok

Expected behavior
There are two possible sensible behaviors:
a) you trim all whitespace characters, including newlines, at the beginning and end of the text, so the saved text of the label would be effectively "Foo bar" with no trailing newline characters
b) you keep the text as is, and display it correctly, rendering the newline characters in exactly the same way you do when they are in the middle and not at the end of the text

Observed behavior
this:

Image

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

2 participants