mirror of
https://github.com/apple/pkl.git
synced 2026-01-11 22:30:54 +01:00
[PR #1351] [MERGED] Fix formatting of nodes with no children #1036
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/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.