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

fix: printer: JSXText: remove trailing whitespaces #1223

Conversation

coderaiser
Copy link
Contributor

@coderaiser coderaiser commented Nov 1, 2022

Fix #211: trailing whitespaces removed for now reason.

Landed in @putout/recast v1.10.0.

@coderaiser coderaiser force-pushed the fix/printer-jsx-text-remove-trailing-whitesaces branch 2 times, most recently from 4bff30a to c835b17 Compare November 1, 2022 11:19
@coderaiser coderaiser force-pushed the fix/printer-jsx-text-remove-trailing-whitesaces branch from c835b17 to bf6a768 Compare November 1, 2022 11:20
Comment on lines +91 to +94
' return (\n' +
' <div abc="app">hello {name}\n' +
' </div>\n' +
' );\n' +
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for the bugfix

now i just need prettier for pretty jsx

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you have ideas for a better fix, you are welcome :)

eventualbuddha added a commit that referenced this pull request Jun 1, 2024
This just re-applies the fix from #1223 by @coderaiser on top of `master`.
eventualbuddha added a commit that referenced this pull request Jun 1, 2024
This just re-applies the fix from #1223 by @coderaiser on top of `master`.
@eventualbuddha
Copy link
Collaborator

Merged via #1403 and released in v0.23.9.

@coderaiser coderaiser deleted the fix/printer-jsx-text-remove-trailing-whitesaces branch June 3, 2024 05:57
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 this pull request may close these issues.

Printing parenthesized JSX nodes
3 participants