redhat-developer / redhat-developer/vscode-xml
formatting partially truncates trailing blanks
Open
Nobody has claimed this yet.
formatting
- Dominant language
- TypeScript
- Stars
- 328
- Forks
- 101
- Avg merge
- 1d 17h
- Merged PRs (30d)
- 7
Description
When formatting elements with names that have trailing blanks, they a trimmed to only one trailing blank.
An xml document <Node><Name>a name with trailing blanks </Name></Node> becomes
<Node>
<Name>a name with trailing blanks </Name>
</Node>
after formatting (note that only one blank remains).
Contributor guide
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
Start by locating the XML formatting path in the vscode-xml extension and reproduce the issue with the XML example containing trailing blanks. Add a regression test showing that formatting preserves all trailing blanks, then verify the formatter output against the expected XML.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript, vscode
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100