mirror of
https://github.com/apple/pkl.git
synced 2026-01-11 14:20:35 +01:00
[PR #1165] [MERGED] Fix escaping in yaml strings #923
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/1165
Author: @bioball
Created: 8/6/2025
Status: ✅ Merged
Merged: 8/6/2025
Merged by: @bioball
Base:
main← Head:fix-yaml-escaping📝 Commits (2)
8adb8aaFix escaping in yaml strings43ca12dFix test📊 Changes
4 files changed (+82 additions, -9 deletions)
View changed files
📝
pkl-core/src/main/java/org/pkl/core/util/yaml/YamlEscaper.java(+29 -7)➕
pkl-core/src/test/files/LanguageSnippetTests/input/api/yamlRenderer9.yml.pkl(+36 -0)📝
pkl-core/src/test/files/LanguageSnippetTests/input/api/yamlRendererStringsCompat.pkl(+2 -2)➕
pkl-core/src/test/files/LanguageSnippetTests/output/api/yamlRenderer9.yml(+15 -0)📄 Description
There are three characters that are currently not escaped, but should be when rendered in double-quoted strings:
Closes #1166
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.