Plugin is adding non-existing spaces to result content with HTML character entities
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 52/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 冷清
- 技术栈
- javascript
- 领域
- tooling
调研方向
使用链接的 CodeSandbox 示例重现该问题,并在使用 Prettier 格式化 XML 时比较插件版本 3.3.0 和 3.3.1。追踪这两个版本之间的回归,并验证 \u0026lt; 和 \u0026gt; 等字符实体在格式化结果中不再获得空格。
由索引模型根据 Issue 内容生成。
描述
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 >
- 主要语言
- JavaScript
- 星标
- 278
- 派生
- 46
- 平均合并
- 1 分钟
- 30 天内合并 PR
- 13
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
prettier/plugin-xml 的其他 Issue
-
难度 3/5 1-2 天 新手友好度 58/100
prettier/plugin-xml#996 ·
-
难度 3/5 1-2 天 新手友好度 58/100
prettier/plugin-xml#995 ·
-
难度 3/5 1-2 天 新手友好度 45/100
prettier/plugin-xml#986 · 1 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 55/100
prettier/plugin-xml#981 ·
-
难度 5/5 一周以上 新手友好度 35/100
prettier/plugin-xml#937 · 1 个 reaction ·
查看 prettier/plugin-xml 的全部 Issue
相似的 Issue
-
awaiting triage bug Causes friction Hop Gui P1 P2 Transforms
难度 2/5 1-3 小时 新手友好度 75/100
-
难度 2/5 1-3 小时 新手友好度 75/100
-
难度 2/5 1-3 小时 新手友好度 75/100
-
难度 2/5 1-3 小时 新手友好度 70/100
georgestephanis/p2026#40 ·
-
难度 2/5 1-3 小时 新手友好度 75/100
Margaret-Petersen/food-delivery-app-clone-react-native#1981 ·