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 hidden #101

Open
p-himik opened this issue Oct 12, 2020 · 2 comments
Open

Leading spaces are hidden #101

p-himik opened this issue Oct 12, 2020 · 2 comments

Comments

@p-himik
Copy link

p-himik commented Oct 12, 2020

Comparing

"1\n    a"

with

"1\n    b"

results in this:
image
I think that's because the leading spaces are wrapped in span - without wrapping, the browser (tested in Chrome and Firefox) doesn't hide them.

@p-himik
Copy link
Author

p-himik commented Oct 12, 2020

Wrapping in code instead of span seems to do the trick. Not sure if there are any implications.

@nirsky
Copy link

nirsky commented Dec 2, 2021

having the same issue

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