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

Multiple spaces in a string are displayed as one in the Tree View #1584

Open
reekystive opened this issue Dec 26, 2023 · 2 comments
Open

Multiple spaces in a string are displayed as one in the Tree View #1584

reekystive opened this issue Dec 26, 2023 · 2 comments

Comments

@reekystive
Copy link

reekystive commented Dec 26, 2023

In the Tree View, although I've set multiple spaces in the state, only one is displayed, which was confusing until I verified in the Raw View that the spaces were indeed present, indicating the issue isn't with my code. The store displays correctly in the Raw View.

Raw View

image

Tree View

image

@reekystive
Copy link
Author

reekystive commented Dec 26, 2023

Maybe white-space: pre could be useful here:

image

@morzel85
Copy link

morzel85 commented Jul 1, 2024

The problem with pre is that it could take a lot of space if there are line breaks. The way raw view shows it is cool: displays spaces and /n escape sequence.

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