mirror of
https://github.com/apple/pkl.git
synced 2026-01-13 23:23:37 +01:00
[PR #1271] [MERGED] Normalize mutli-line string indentation #984
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/1271
Author: @HT154
Created: 10/30/2025
Status: ✅ Merged
Merged: 10/30/2025
Merged by: @HT154
Base:
main← Head:formatter-multi-line-string-mixed-indentation📝 Commits (1)
1f996a3Normalize mutli-line string indentation📊 Changes
3 files changed (+46 additions, -9 deletions)
View changed files
📝
pkl-formatter/src/main/kotlin/org/pkl/formatter/Generator.kt(+6 -9)📝
pkl-formatter/src/test/files/FormatterSnippetTests/input/multi-line-strings.pkl(+20 -0)📝
pkl-formatter/src/test/files/FormatterSnippetTests/output/multi-line-strings.pkl(+20 -0)📄 Description
The formatter previously assumed all indentation was spaces and failed to normalize leading indentation in multi-line strings to be spaces only.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.