Expressions don't respect whitespace control
还没有人认领这个 Issue。
评估
调研方向
首先跟踪 Jinjava 对 {{- 5 -}} 语法的表达式解析和空白控制处理。为所示模板添加回归测试覆盖,并验证其渲染结果为 .5.,而不是保留周围的空格。
由索引模型根据 Issue 内容生成。
描述
I would expect this template:
. {{- 5 -}} .
to evaluate to:
.5.
That is, the whitespace on either side of the expression should be stripped because of the dashes on either side of the expression, as it does in Jinja. However, instead I get:
. 5 .
with no whitespace stripped.
- 主要语言
- Java
- 星标
- 787
- 派生
- 184
- 平均合并
- 6 天 22 小时
- 30 天内合并 PR
- 1
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
HubSpot/jinjava 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 82/100
-
难度 2/5 1-3 小时 新手友好度 64/100
-
Upgrade jsoup未关闭
难度 3/5 1-2 天 新手友好度 45/100
-
难度 3/5 1-2 天 新手友好度 82/100
-
难度 3/5 1-2 天 新手友好度 76/100
相似的 Issue
-
new feature
难度 2/5 1-3 小时 新手友好度 62/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
apache/rocketmq-dashboard#5594 ·
维护者通常 3 天内回复
-
bug pkg:sdk
难度 2/5 1-3 小时 新手友好度 82/100
aws/aws-durable-execution-sdk-java#773 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
PCL-Community/PCL-CE#3652 ·
维护者通常 1 天内回复
-
TaskSecret.vue: replace explicit `any` with real types可能已有人在做 @prayas-bit 今天认领。 未关闭area/frontend good first issue kind/cooldown
难度 2/5 1-3 小时 新手友好度 68/100
kestra-io/kestra#20352 · 1 条评论 ·
维护者通常 1 天内回复