Skip to content

Preserve one-item inline spacing on insert#17

Merged
dereuromark merged 1 commit into
masterfrom
improve-single-item-inline-roundtrip
Mar 28, 2026
Merged

Preserve one-item inline spacing on insert#17
dereuromark merged 1 commit into
masterfrom
improve-single-item-inline-roundtrip

Conversation

@dereuromark
Copy link
Copy Markdown
Contributor

Summary

This improves source-aware round-trip behavior for single-line inline tables that originally contain one parsed item.

When a second key/value pair is inserted into a trivia-preserving one-item inline table, the encoder can now preserve reusable local spacing instead of falling back to harder canonicalization.

Changes

  • preserve reusable spacing for shape-changing single-line inline tables with one original parsed item
  • cover both top-level and nested insertion cases with editing fixtures
  • tighten the support-matrix wording around common single-line collection edits

@dereuromark dereuromark merged commit 005e801 into master Mar 28, 2026
3 checks passed
@dereuromark dereuromark deleted the improve-single-item-inline-roundtrip branch March 28, 2026 23:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant