This add a newline after opening ( in a let expression when multilined. As a side-effect, this also fixes an issue where let expressions are incorrectly doubly indented.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
## 📋 Pull Request Information
**Original PR:** https://github.com/apple/pkl/pull/1245
**Author:** [@bioball](https://github.com/bioball)
**Created:** 10/19/2025
**Status:** ❌ Closed
**Base:** `main` ← **Head:** `let-expr-formatting-fixes`
---
### 📝 Commits (1)
- [`163cb5a`](https://github.com/apple/pkl/commit/163cb5aec294960d66b7afec92c998ec6aa4b16d) Let expression formatting changes
### 📊 Changes
**4 files changed** (+28 additions, -6 deletions)
<details>
<summary>View changed files</summary>
📝 `pkl-formatter/src/main/kotlin/org/pkl/formatter/Builder.kt` (+4 -4)
➕ `pkl-formatter/src/test/files/FormatterSnippetTests/input/expr-let-if.pkl` (+9 -0)
➕ `pkl-formatter/src/test/files/FormatterSnippetTests/output/expr-let-if.pkl` (+11 -0)
📝 `pkl-formatter/src/test/files/FormatterSnippetTests/output/expr-let.pkl` (+4 -2)
</details>
### 📄 Description
This add a newline after opening `(` in a let expression when multilined. As a side-effect, this also fixes an issue where let expressions are incorrectly doubly indented.
---
<sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 Pull Request Information
Original PR: https://github.com/apple/pkl/pull/1245
Author: @bioball
Created: 10/19/2025
Status: ❌ Closed
Base:
main← Head:let-expr-formatting-fixes📝 Commits (1)
163cb5aLet expression formatting changes📊 Changes
4 files changed (+28 additions, -6 deletions)
View changed files
📝
pkl-formatter/src/main/kotlin/org/pkl/formatter/Builder.kt(+4 -4)➕
pkl-formatter/src/test/files/FormatterSnippetTests/input/expr-let-if.pkl(+9 -0)➕
pkl-formatter/src/test/files/FormatterSnippetTests/output/expr-let-if.pkl(+11 -0)📝
pkl-formatter/src/test/files/FormatterSnippetTests/output/expr-let.pkl(+4 -2)📄 Description
This add a newline after opening
(in a let expression when multilined. As a side-effect, this also fixes an issue where let expressions are incorrectly doubly indented.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.