prettier / prettier/plugin-xml
Plugin is adding non-existing spaces to result content with HTML character entities
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 278
- Forks
- 46
- Avg merge
- 1m
- Merged PRs (30d)
- 13
Description
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 >
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue using the linked CodeSandbox examples and compare plugin versions 3.3.0 and 3.3.1 while formatting XML with Prettier. Trace the regression between those versions and verify that character entities such as < and > no longer gain spaces in the formatted result.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 52/100