plugin-xml icon indicating copy to clipboard operation
plugin-xml copied to clipboard

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

Open jvega190 opened this issue 1 year ago • 0 comments

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 avatar May 14 '24 21:05 jvega190