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

Unquoted text does not include trailing space #53

Open
bram209 opened this issue Mar 2, 2024 · 3 comments · Fixed by bram209/leptosfmt#110
Open

Unquoted text does not include trailing space #53

bram209 opened this issue Mar 2, 2024 · 3 comments · Fixed by bram209/leptosfmt#110

Comments

@bram209
Copy link

bram209 commented Mar 2, 2024

Take this example: <div>The count is {count}</div>
I would expect the first child of the div element node to be an unquoted text node with the following content: "The count is ", but instead is: "The count is" (lacking the trailing space).

@bram209
Copy link
Author

bram209 commented Mar 3, 2024

Github automatically closed this issue (unintentionally)

@vldm
Copy link
Collaborator

vldm commented Mar 11, 2024

@bram209 can you add more details:
I am interested is Span::join is available for rstml.
(Are you using stable or nightly, with proc-macro::TokenStream or only with proc-macro2)

And what method are you using to print text is it to_source_text(true)

@bram209
Copy link
Author

bram209 commented Mar 20, 2024

Hi, I am not inside a proc macro, so using proc_macro2 and nightly.
I am busy at the moment, but will try to check later tonigth and provide additional info

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

Successfully merging a pull request may close this issue.

2 participants