mirror of
https://github.com/apple/pkl.git
synced 2026-01-12 06:40:42 +01:00
[PR #1259] [MERGED] Respect newlines in if/else and let expressions #975
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 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.