Skip to content

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

Description

@jvega190

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 >

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions