plugin-xml
plugin-xml copied to clipboard
Plugin is adding non-existing spaces to result content with HTML character entities
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 >