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

Plugin is adding non-existing spaces to result content with HTML character entities #784

Open
jvega190 opened this issue May 14, 2024 · 0 comments

Comments

@jvega190
Copy link

Applies to version 3.3.1 to up to latest (3.4.1). Not reproducible in 3.3.0.

When using the plugin to format xml content using prettier, the result content ends up with non-existing spaces in HTML character entities.

Codesandbox for version 3.3.0:
https://codesandbox.io/p/sandbox/prettierxmlplugin-3-3-0-k374wn?file=%2Fsrc%2FApp.js%3A6%2C1-9%2C15

Codesandbox for version 3.3.1:
https://codesandbox.io/p/sandbox/cocky-cray-gy83nr?file=%2Fsrc%2FApp.js%3A3%2C19

See how in 3.3.1 the result has spaces in character entities like < and >

@jvega190 jvega190 changed the title Plugin is adding non-existing spaces to result content Plugin is adding non-existing spaces to result content with HTML character entities May 14, 2024
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

1 participant