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

Leading spaces are removed from all wrapped lines except the first #7

Open
tomhicks opened this issue Jun 15, 2023 · 1 comment
Open

Comments

@tomhicks
Copy link

We are using this library to render text which the user can enter into a textarea to display as a "note" in a mapping/drawing app.

Using the text area, it's possible to add some rudimentary "formatting" by entering leading spaces, or adding lots of spaces between words.

These are lost when using this library, which loses the formatting. You can see the issue here where the text is laid out with canvas-hypertxt on the left and the textarea on the right:
image

The exact text is:

   bbc.com and.                                      another bbc.com

new line bbc.com

   more
new
lines

bbc.com
@jassmith
Copy link
Contributor

will fix :)

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