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

simultaneous use of whitespaces and soft wrapping causes inappropriate behavior #1444

Closed
HeilagrFox opened this issue Sep 23, 2024 · 5 comments

Comments

@HeilagrFox
Copy link

I came across a bug in the component: when a line is broken, the displayed spaces are shifted to the distance of the text of the previous line and are superimposed on the text of the new line.

Expected result:
line...........
.....

Actual result:
line...........
...........

I noticed that dots were wrapped by span tag, so they can't be moved to another line as it should be.

image

@marijnh marijnh transferred this issue from codemirror/codemirror5 Sep 23, 2024
@marijnh
Copy link
Member

marijnh commented Sep 23, 2024

Could you share the link to the script you made a screenshot of, so I don't have to type in your code? (See the 'Share' button)

@HeilagrFox HeilagrFox closed this as not planned Won't fix, can't repro, duplicate, stale Sep 23, 2024
@HeilagrFox HeilagrFox reopened this Sep 23, 2024
@marijnh
Copy link
Member

marijnh commented Sep 23, 2024

Attached patch should resolve this.

@HeilagrFox
Copy link
Author

HeilagrFox commented Sep 24, 2024

@marijnh
Can you please make a new release right now because these changes are really important?)
🙏🙏🙏

@marijnh
Copy link
Member

marijnh commented Sep 25, 2024

I've tagged @codemirror/view 6.34.0

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