prettier / prettier/plugin-xml
Formatter fails on XML file with entity definitions
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 278
- Forks
- 46
- Avg merge
- 1m
- Merged PRs (30d)
- 13
Description
Formatter fails with output:
Formatter failed, skipping: default prettier instance failed to format buffer: SyntaxError: unexpected character: ->[<- at offset: 70, skipped 1 characters. (3:26)
Input XML is attached. It is actually XSL but you can't attach that file type.
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
Download the attached content.xml and use it as the reproduction input for the XML formatter. Start by reproducing the reported failure around the entity definitions and XSL content, then verify that the same file formats successfully without the unexpected-character error.
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
- 58/100