-
Notifications
You must be signed in to change notification settings - Fork 491
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
Meaningful whitespace is not preserved #1218
Open
6 of 12 tasks
Labels
bug
Something isn't working
Comments
This is related to #310 as well. |
hello |
fixes #4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am interested in helping provide a fix!
Yes
Which generators are impacted?
Reproduction case
https://mitosis.builder.io/?outputTab=E4UwhgxgLkA%3D&code=KYDwDg9gTgLgBAE2AMwIYFcA29noHYDGMAlhHnABLCaYQAUYUEYAzgJRwDeAUHHFMBjoo5Orz5wAPAmIA3AHziJlarS6NmLAHR5UAW2BwA%2FEbgByAOrRMCMwF8lUgPQyF4tgG5udoA%3D%3D
Expected Behaviour
The meaningful whitespace (
" "
) should be preserved in the react output.Actual Behaviour
The space is converted into a line break, causing the output to be
HelloWorld
(without a space)Additional Information
I did notice a few things:
{' '}
causes the output to have a space, although not escaped with braces. Unfortunately, prettier also removes this literal space from the.lite.tsx
file, because it's redundant.
has no effect on the output. The
escape is removed.The text was updated successfully, but these errors were encountered: