Original PR: https://github.com/apple/pkl/pull/1259 Author: @bioball Created: 10/27/2025 Status: ✅ Merged Merged: 10/28/2025 Merged by: @bioball
Base: main ← Head: respect-newlines-in-if
main
respect-newlines-in-if
6e75dde
425ebfb
5 files changed (+86 additions, -5 deletions)
📝 pkl-formatter/src/main/kotlin/org/pkl/formatter/Builder.kt (+11 -5) 📝 pkl-formatter/src/test/files/FormatterSnippetTests/input/expr-if.pkl (+26 -0) 📝 pkl-formatter/src/test/files/FormatterSnippetTests/input/expr-let.pkl (+8 -0) 📝 pkl-formatter/src/test/files/FormatterSnippetTests/output/expr-if.pkl (+34 -0) 📝 pkl-formatter/src/test/files/FormatterSnippetTests/output/expr-let.pkl (+7 -0)
pkl-formatter/src/main/kotlin/org/pkl/formatter/Builder.kt
pkl-formatter/src/test/files/FormatterSnippetTests/input/expr-if.pkl
pkl-formatter/src/test/files/FormatterSnippetTests/input/expr-let.pkl
pkl-formatter/src/test/files/FormatterSnippetTests/output/expr-if.pkl
pkl-formatter/src/test/files/FormatterSnippetTests/output/expr-let.pkl
Change the formatter to prevent multiline if/else and let expressions from collapsing into a single line.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
No dependencies set.
The note is not visible to the blocked user.
📋 Pull Request Information
Original PR: https://github.com/apple/pkl/pull/1259
Author: @bioball
Created: 10/27/2025
Status: ✅ Merged
Merged: 10/28/2025
Merged by: @bioball
Base:
main← Head:respect-newlines-in-if📝 Commits (2)
6e75ddeRespect newlines in if/else and let expressions425ebfbAddress PR comments📊 Changes
5 files changed (+86 additions, -5 deletions)
View changed files
📝
pkl-formatter/src/main/kotlin/org/pkl/formatter/Builder.kt(+11 -5)📝
pkl-formatter/src/test/files/FormatterSnippetTests/input/expr-if.pkl(+26 -0)📝
pkl-formatter/src/test/files/FormatterSnippetTests/input/expr-let.pkl(+8 -0)📝
pkl-formatter/src/test/files/FormatterSnippetTests/output/expr-if.pkl(+34 -0)📝
pkl-formatter/src/test/files/FormatterSnippetTests/output/expr-let.pkl(+7 -0)📄 Description
Change the formatter to prevent multiline if/else and let expressions from collapsing into a single line.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.