PureYAML/Sources/Emitting
Mihaela Mihaljevic 318913baeb fix(emitting): escape CRLF per unicode scalar in double-quoted output
A CR+LF pair forms a single Swift extended grapheme cluster, so quote()'s Character-level switch matched neither '\\r' nor '\\n' and emitted the line break unescaped. The folding parser then read the dumped value back differently, breaking parse/dump/parse stability for any string containing CRLF (surfaced as a round-trip failure on the Zoom OpenAPI corpus seed under PUREYAML_RUN_FULL_CORPUS). Iterating over unicode scalars escapes CR and LF independently. Adds a dumper regression test.
2026-06-23 22:23:40 +02:00
..
Dumper.Mapping.swift Add machine-readable validation reports 2026-06-05 20:39:32 +02:00
Dumper.Stream.swift feat(emitting): dump YAML streams 2026-06-05 17:14:41 +02:00
Dumper.swift fix(emitting): escape CRLF per unicode scalar in double-quoted output 2026-06-23 22:23:40 +02:00
Emitting.CollectionStyle.swift feat(emitting): add flow collection output 2026-06-05 11:09:58 +02:00
Emitting.ScalarStyle.swift feat(emitting): add literal block scalar output 2026-06-05 11:06:19 +02:00
Options.swift feat(emitting): add flow collection output 2026-06-05 11:09:58 +02:00