Original PR: https://github.com/apple/pkl/pull/1351 Author: @bioball Created: 12/5/2025 Status: ✅ Merged Merged: 12/9/2025 Merged by: @bioball
Base: main ← Head: fix-empty-formatting
main
fix-empty-formatting
55a5aed
f235a26
390f884
2 files changed (+8 additions, -1 deletions)
📝 pkl-formatter/src/main/kotlin/org/pkl/formatter/Builder.kt (+1 -1) 📝 pkl-formatter/src/test/kotlin/org/pkl/formatter/FormatterTest.kt (+7 -0)
pkl-formatter/src/main/kotlin/org/pkl/formatter/Builder.kt
pkl-formatter/src/test/kotlin/org/pkl/formatter/FormatterTest.kt
For example, this fixes an issue where an empty module turns into \n.
\n
Closes https://github.com/apple/pkl/issues/1348
🔄 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/1351
Author: @bioball
Created: 12/5/2025
Status: ✅ Merged
Merged: 12/9/2025
Merged by: @bioball
Base:
main← Head:fix-empty-formatting📝 Commits (3)
55a5aedFix formatting of nodes with no childrenf235a26Update pkl-formatter/src/test/kotlin/org/pkl/formatter/FormatterTest.kt390f884Simplify listOf(Empty) to emptyList()📊 Changes
2 files changed (+8 additions, -1 deletions)
View changed files
📝
pkl-formatter/src/main/kotlin/org/pkl/formatter/Builder.kt(+1 -1)📝
pkl-formatter/src/test/kotlin/org/pkl/formatter/FormatterTest.kt(+7 -0)📄 Description
For example, this fixes an issue where an empty module turns into
\n.Closes https://github.com/apple/pkl/issues/1348
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.