Original PR: https://github.com/apple/pkl/pull/1268 Author: @bioball Created: 10/29/2025 Status: ✅ Merged Merged: 11/3/2025 Merged by: @bioball
Base: main ← Head: respect-line-breaks
main
respect-line-breaks
298126e
6 files changed (+179 additions, -22 deletions)
📝 docs/modules/release-notes/pages/0.30.adoc (+1 -1) 📝 pkl-formatter/src/main/kotlin/org/pkl/formatter/Builder.kt (+47 -21) 📝 pkl-formatter/src/test/files/FormatterSnippetTests/input/expr-chain-grouping.pkl (+3 -0) ➕ pkl-formatter/src/test/files/FormatterSnippetTests/input/line-breaks3.pkl (+58 -0) 📝 pkl-formatter/src/test/files/FormatterSnippetTests/output/expr-chain-grouping.pkl (+5 -0) ➕ pkl-formatter/src/test/files/FormatterSnippetTests/output/line-breaks3.pkl (+65 -0)
docs/modules/release-notes/pages/0.30.adoc
pkl-formatter/src/main/kotlin/org/pkl/formatter/Builder.kt
pkl-formatter/src/test/files/FormatterSnippetTests/input/expr-chain-grouping.pkl
pkl-formatter/src/test/files/FormatterSnippetTests/input/line-breaks3.pkl
pkl-formatter/src/test/files/FormatterSnippetTests/output/expr-chain-grouping.pkl
pkl-formatter/src/test/files/FormatterSnippetTests/output/line-breaks3.pkl
If an operator chain or method call is multiline, keep those newlines in the formatted output.
Help preserve code like:
foo |> (it) -> it + 2 |> (it) -> it / 2
🔄 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/1268
Author: @bioball
Created: 10/29/2025
Status: ✅ Merged
Merged: 11/3/2025
Merged by: @bioball
Base:
main← Head:respect-line-breaks📝 Commits (1)
298126eRespect line breaks in operator chains and argument lists📊 Changes
6 files changed (+179 additions, -22 deletions)
View changed files
📝
docs/modules/release-notes/pages/0.30.adoc(+1 -1)📝
pkl-formatter/src/main/kotlin/org/pkl/formatter/Builder.kt(+47 -21)📝
pkl-formatter/src/test/files/FormatterSnippetTests/input/expr-chain-grouping.pkl(+3 -0)➕
pkl-formatter/src/test/files/FormatterSnippetTests/input/line-breaks3.pkl(+58 -0)📝
pkl-formatter/src/test/files/FormatterSnippetTests/output/expr-chain-grouping.pkl(+5 -0)➕
pkl-formatter/src/test/files/FormatterSnippetTests/output/line-breaks3.pkl(+65 -0)📄 Description
If an operator chain or method call is multiline, keep those newlines in the formatted output.
Help preserve code like:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.